SecurityContext

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

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/wagtail/wagtail/commit/5be2b1ed55fd7259dfdf2c82e7701dba407b8b62Patch
https://github.com/wagtail/wagtail/commit/ff806ab173a504395fdfb3139eb0a29444ab4b91Patch
https://github.com/wagtail/wagtail/security/advisories/GHSA-5286-f2rf-35c2Mitigation, Vendor Advisory
https://docs.wagtail.org/en/stable/reference/contrib/modeladmin/chooseparentview.html#customising-chooseparentviewProduct
https://docs.wagtail.org/en/stable/reference/contrib/modeladmin/inspectview.html#enabling-customising-inspectviewProduct
https://github.com/wagtail/wagtail/commit/bc84bf9815610cfbf8db3b6050c7ddcbaa4b9713Release Notes
https://github.com/wagtail/wagtail/commit/eefc3381d37b476791610e5d30594fae443f33afRelease Notes
https://github.com/wagtail/wagtail/releases/tag/v4.2.2Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
torchbox:wagtail>= 4.2, < 4.2.2; >= 1.5, < 4.1.4nonvd/v1/products/torchbox/wagtail

Projects

RepositoryLink kindsIndexedUrl
wagtail/wagtailcommit, fix, package, releases, security_advisoryyes/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