Servers and applications
CVE-2026-28222
Improper escaping of HTML (Cross-site Scripting) on TableBlock class attributes
- Severity
- Medium 6.1
- Published
- 3 Mar 2026
- Last changed
- 17 Jun 2026
- Added to UpHeron
- 1 Nov 2026
- Fixed in
- 6.3.8, 7.0.6, 7.2.3
- Exploit chance
- 0.5% in the next 30 daysHigher than 43% of CVEs. EPSS by FIRST, 19 Nov 2026
- Weakness
- Cross-site scripting (CWE-79)
- Attack
- Over the network · Needs an administrator account · Needs someone to click or open something
- Attacker can
- Read data · Change data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N- Also known as
- GHSA-p5cm-246w-84jm
- Sources
- NVD, Project advisories (GitHub)
Description
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.
Workarounds
Site owners who are unable to upgrade to the new versions can remediate the vulnerability by setting a template attribute on all TableBlock definitions, referencing a template that does not output class attributes. For example:
Affected software
| Software | Affected versions |
|---|---|
WagtailServers and applications · cpe:a:torchbox:wagtail |
|
WagtailServers and applications · github:wagtail/wagtail |
|
About Wagtail
website content management system
- Weekly downloads (PyPI)
- 159,203PyPI Stats, 15 Nov 2026
- GitHub stars
- 20,744GitHub, 15 Nov 2026
- Forks
- 4,755GitHub, 15 Nov 2026
- Latest release
- v8.1GitHub, 15 Nov 2026
- Released
- 2 Nov 2026GitHub
- License
- BSD licensesWikidata
- Written in
- Python, DjangoWikidata
- First released
- 2014Wikidata
- First published on GitHub
- 3 Feb 2014GitHub
Release lines
| Release | Latest | Security fixes |
|---|---|---|
| 8.1 | 8.1 | Until 4 May 2027 |
| 8.0 | 8.0.1 | Until 2 Feb 2027 |
| 7.4 (LTS)LTS | 7.4.4 | Until 2 Nov 2027 |
| 7.3 | 7.3.4 | Ended 25 Aug 2026 |
| 7.2 | 7.2.3 | Ended 4 May 2026 |
| 7.1 | 7.1.3 | Ended 2 Feb 2026 |
From endoflife.date.
Vulnerabilities in Wagtail
- In our list
- 39
- Published in the last 12 months
- 27
- Critical, last 12 months
- 0
- High, last 12 months
- 2
- Known exploited
- 0
- GHSA-4pg7-87vv-vrh7Stored XSS attack via v3 write API and third-party HTML editorsHigh 7.3 20 Oct 2026
- GHSA-3xgh-xc8p-9h54Improper restriction handling on Pages admin API for ancestor pagesMedium 4.3 20 Oct 2026
- GHSA-jrgm-fhgv-hmj9Improper restriction handling on API v3 (preview) pages endpointMedium 4.3 20 Oct 2026
- GHSA-g6cr-c9h3-6j2mFormula injection via XLSX exportMedium 6.5 20 Oct 2026
- GHSA-jm43-45cc-q9rrCross-Collection authorization bypass via Collection privacy settingsMedium 6.5 20 Oct 2026
- GHSA-jm5p-837g-rv8gImproper restriction handling on Page translation API endpointMedium 6.5 20 Aug 2026
References
- NVD https://nvd.nist.gov/vuln/detail/CVE-2026-28222
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-28222
- GitHub Advisory Database https://github.com/advisories/GHSA-p5cm-246w-84jm
- github.com https://github.com/wagtail/wagtail/security/advisories/GHSA-p5cm-246w-84jm