CVE-2023-28836: Wagtail - Stored Cross-Site Scripting
- Cve: CVE-2023-28836
- Name: Wagtail - Stored Cross-Site Scripting
- 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.
- Impact: Potential for limited-permission users to execute scripts in admin views, possibly leading to session hijacking or privilege escalation when viewed by higher-privilege users.
- Remediation: Upgrade to Wagtail 4.1.4 or 4.2.2. or disable/override the affected ModelAdmin functionalities.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: logged_in
- Requirements: Attacker needs access to Wagtail admin with ModelAdmin enabled
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.4
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00772
- Epss percentile: 0.56618
- Assignee: [email protected]
- Published at: 2023-04-03T17:15:06Z
- Age in days: 1331
- Modified at: 2026-06-17T05:48:52Z
- Patch available: yes
- References total: 8
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-28836
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| torchbox:wagtail | >= 4.2, < 4.2.2; >= 1.5, < 4.1.4 | no | nvd | /v1/products/torchbox/wagtail |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| wagtail/wagtail | commit, fix, package, releases, security_advisory | yes | /v1/repositories/wagtail/wagtail |
Index
- Repositories: 3
- Repositories high signal: 2
- Packages: 1
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 6
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports