---
id: CVE-2026-54259
aliases:
  - GHSA-h54r-xq46-qwqm
title: >-
  Wagtail: Improper restriction handling on Documents and Images chosen
  endpoints
summary: >-
  Wagtail: Improper restriction handling on Documents and Images chosen
  endpoints
severity: medium
cvss: 4.3
cwe:
  - CWE-280
vendor: wagtail
product: wagtail
ecosystem: pip
affected:
  - wagtail < 7.0.8
  - 'wagtail >= 7.1, < 7.3.3'
  - 'wagtail >= 7.4, < 7.4.2'
patched:
  - wagtail 7.0.8
  - wagtail 7.3.3
  - wagtail 7.4.2
published: '2026-08-20'
updated: '2026-08-20'
source: GHSA
sourceUrl: 'https://github.com/advisories/GHSA-h54r-xq46-qwqm'
references:
  - url: 'https://github.com/wagtail/wagtail/security/advisories/GHSA-h54r-xq46-qwqm'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-54259'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/wagtail/PYSEC-2026-612.yaml
  - url: 'https://github.com/advisories/GHSA-h54r-xq46-qwqm'
tags:
  - ghsa
  - pip
epss: 0.0027
epssPercentile: 0.19443
ingestedAt: '2026-08-20T18:59:54.558Z'
---

## Overview

### Impact
The Documents and Images chooser's chosen endpoint incorrectly listed items for which the user has not been granted choose permission. A user with access to the Wagtail admin could see the filename and name and URLs of documents and images in those collections.

The vulnerability is not exploitable by an ordinary site visitor without access to the Wagtail admin.

### Patches
Patched versions have been released as Wagtail 7.0.8, 7.3.3, 7.4.2.

### Workarounds
N/A

### Acknowledgements
Many thanks to @harshakshit for reporting this issue.


### For more information
If you have any questions or comments about this advisory:

* Visit Wagtail's [support channels](https://docs.wagtail.org/en/stable/support.html)
* Email us at [security@wagtail.org](mailto:security@wagtail.org) (view our [security policy](https://github.com/wagtail/wagtail/security/policy) for more information).

## Affected packages

- `wagtail < 7.0.8`
- `wagtail >= 7.1, < 7.3.3`
- `wagtail >= 7.4, < 7.4.2`

## Remediation

Upgrade to a patched release:

- `wagtail 7.0.8`
- `wagtail 7.3.3`
- `wagtail 7.4.2`
