CVE-2026-28222
Wagtail: Improper escaping of HTML (Cross-site Scripting) on TableBlock class attributes
Also known as GHSA-p5cm-246w-84jm, PYSEC-2026-2307
Mitigation
- Upgrade wagtail to one of 6.3.8, 7.0.6, 7.2.3, 7.3.1 (or later in the same release line).
Who should check
- Projects that depend on PyPI package wagtail (< 6.3.8)
- Anyone running wagtail < 6.3.8; >= 6.4rc1, < 7.0.6; >= 7.1rc1, < 7.2.3; >= 7.3rc1, < 7.3.1
Vulnerability facts
- Affected
- wagtail < 6.3.8
- Fixed in
- 6.3.8, 7.0.6, 7.2.3, 7.3.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 6.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: High
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- EPSS
- 0.70% chance of exploitation in 30 days (percentile 49, 2026-11-26)
- CWE
- CWE-79
- Modified
Description
Wagtail is an open source content management system built on Django. Prior to versions 6.3.8, 7.0.6, 7.2.3, and 7.3.1, a stored cross-site scripting (XSS) vulnerability exists on rendering TableBlock blocks within a StreamField. A user with access to create or edit pages containing TableBlock StreamField blocks is able to set specially-crafted class attributes on the block which run arbitrary JavaScript code when the page is viewed. When viewed by a user with higher privileges, this could lead to performing 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 using TableBlock. This issue has been patched in versions 6.3.8, 7.0.6, 7.2.3, and 7.3.1.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-28222. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-28222.md Affected: wagtail < 6.3.8 Fixed in: 6.3.8, 7.0.6, 7.2.3, 7.3.1 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.
References
Vendor advisories
- https://github.com/wagtail/wagtail/security/advisories/GHSA-p5cm-246w-84jm
- https://github.com/wagtail/wagtail/releases/tag/v6.3.8
- https://github.com/wagtail/wagtail/releases/tag/v7.0.6
- https://github.com/wagtail/wagtail/releases/tag/v7.2.3
- https://github.com/wagtail/wagtail/releases/tag/v7.3.1
- https://nvd.nist.gov/vuln/detail/CVE-2026-28222
Patches
- https://github.com/wagtail/wagtail/commit/0375094bb57ce6e527005c2bb2e871dd20bca04d
- https://github.com/wagtail/wagtail/commit/4620423cb22c5253391a0f04178089c1162f6e2e
- https://github.com/wagtail/wagtail/commit/575c0d7c18c7716ed73f7a3c2720ad75956f0a85
- https://github.com/wagtail/wagtail/commit/605a5569686565e035313222e1bc2f9802fbc55b
FAQ
Is CVE-2026-28222 being exploited?
There is no confirmed exploitation: CVE-2026-28222 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.70% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-28222?
Medium: CVSS 6.1 (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.
Which versions are affected by CVE-2026-28222?
wagtail < 6.3.8.
Is there a fix for CVE-2026-28222?
Yes. Fixed in 6.3.8, 7.0.6, 7.2.3, 7.3.1. Upgrade wagtail to one of 6.3.8, 7.0.6, 7.2.3, 7.3.1 (or later in the same release line).
How do I check if I'm affected by CVE-2026-28222?
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.