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

- Severity: Medium 6.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 56% of CVEs (2026-12-01)
- Published: 2023-04-03T00:00:00.000Z
- Modified: 2026-09-10T03:49:53.494Z
- Also known as: GHSA-5286-f2rf-35c2, PYSEC-2023-55
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- wagtail wagtail: from 1.5 before 1.5*; from 4.1.1 before 4.1.1; from 4.2 before 4.2*; from 4.2.2 before 4.2.2
- wagtail (PyPI): from 1.5 before 4.1.4; from 4.2 before 4.2.2; before eefc3381d37b476791610e5d30594fae443f33af; before bc84bf9815610cfbf8db3b6050c7ddcbaa4b9713; before 5be2b1ed55fd7259dfdf2c82e7701dba407b8b62; before ff806ab173a504395fdfb3139eb0a29444ab4b91
- torchbox wagtail: from 1.5 before 4.1.4; from 4.2 before 4.2.2

## Every score

- GitHub_M: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 6.4 High `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

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

## Sources

- CVE List: [CVE-2023-28836](https://www.cve.org/CVERecord?id=CVE-2023-28836), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-5286-f2rf-35c2](https://github.com/advisories/GHSA-5286-f2rf-35c2), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-28836](https://nvd.nist.gov/vuln/detail/CVE-2023-28836), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-55](https://osv.dev/vulnerability/PYSEC-2023-55), CC-BY-4.0, modified 2026-06-08

---

Page: https://cve.day/CVE-2023-28836 · Whole record: https://cve.day/CVE-2023-28836.json · Rebuilt by cve.day 2026-11-25T22:58:23.007Z
