# CVE-2023-28836: Wagtail vulnerable to stored Cross-site Scripting attack via ModelAdmin views

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.4
- **CVSS:** 6.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: High; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.84% (percentile 55, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-5286-f2rf-35c2, PYSEC-2023-55
- **Published:** 2023-04-03T00:00:00.000Z
- **Modified:** 2026-09-10T03:49:53.494Z

## Who should check

- Projects that depend on PyPI package wagtail (\>= 1.5, \< 4.1.4)
- Anyone running wagtail \>= 1.5, \< 1.5\*; \>= 4.1.1, \< 4.1.1; \>= 4.2, \< 4.2\*; \>= 4.2.2, \< 4.2.2

## Description

Wagtail is an open source content management system built on Django. Starting in version 1.5 and prior to versions 4.1.4 and 4.2.2, a stored cross-site scripting (XSS) vulnerability exists on ModelAdmin views within the Wagtail admin interface. A user with a limited-permission editor account for the Wagtail admin could potentially craft pages and documents that, when viewed by a user with higher privileges, could perform actions with that user's credentials. The vulnerability is not exploitable by an ordinary site visitor without access to the Wagtail admin, and only affects sites with ModelAdmin enabled. For page, the vulnerability is in the "Choose a parent page" ModelAdmin view (\`ChooseParentView\`), available when managing pages via ModelAdmin. For documents, the vulnerability is in the ModelAdmin Inspect view (\`InspectView\`) when displaying document fields. Patched versions have been released as Wagtail 4.1.4 and Wagtail 4.2.2. Site owners who are unable to upgrade to the new versions can disable or override the corresponding functionality.

## Affected and fixed versions

- PyPI `wagtail`: affected \>= 1.5, \< 4.1.4; fixed 4.1.4, 4.2.2 (osv)
- wagtail: \>= 1.5, \< 1.5\*; \>= 4.1.1, \< 4.1.1; \>= 4.2, \< 4.2\*; \>= 4.2.2, \< 4.2.2 (cvelist)

## Mitigation

- Upgrade wagtail to one of 4.1.4, 4.2.2 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-28836. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-28836.md
Affected: wagtail >= 1.5, < 4.1.4
Fixed in: 4.1.4, 4.2.2

Steps:
1. Search this machine and project for wagtail (PyPI), wagtail: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-28836 being exploited?

There is no confirmed exploitation: CVE-2023-28836 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.84% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-28836?

Medium: CVSS 6.4 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2023-28836?

wagtail \>= 1.5, \< 4.1.4.

### Is there a fix for CVE-2023-28836?

Yes. Fixed in 4.1.4, 4.2.2. Upgrade wagtail to one of 4.1.4, 4.2.2 (or later in the same release line).

### How do I check if I'm affected by CVE-2023-28836?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/wagtail/wagtail/security/advisories/GHSA-5286-f2rf-35c2>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-28836>
- patch: <https://github.com/wagtail/wagtail/commit/bc84bf9815610cfbf8db3b6050c7ddcbaa4b9713>
- patch: <https://github.com/wagtail/wagtail/commit/eefc3381d37b476791610e5d30594fae443f33af>
- patch: <https://github.com/wagtail/wagtail/commit/5be2b1ed55fd7259dfdf2c82e7701dba407b8b62>
- patch: <https://github.com/wagtail/wagtail/commit/ff806ab173a504395fdfb3139eb0a29444ab4b91>
- other: <https://docs.wagtail.org/en/stable/reference/contrib/modeladmin/chooseparentview.html#customising-chooseparentview>
- other: <https://docs.wagtail.org/en/stable/reference/contrib/modeladmin/inspectview.html#enabling-customising-inspectview>
- other: <https://github.com/wagtail/wagtail/releases/tag/v4.2.2>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/wagtail/PYSEC-2023-55.yaml>
- other: <https://github.com/wagtail/wagtail>
- other: <https://github.com/wagtail/wagtail/releases/tag/v4.1.4>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-28836>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-5286-f2rf-35c2> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2023-55> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-28836> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-28836>
