All vulnerabilities

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.

From wagtail/wagtail's security advisory.

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:

Workarounds as given by wagtail/wagtail's security advisory.

Affected software

SoftwareAffected versions
WagtailServers and applications · cpe:a:torchbox:wagtail
  • Every version before 6.3.8
  • From 6.4 before 7.0.6
  • From 7.1 before 7.2.3
  • Version 7.3-rc1
  • Version 7.3
WagtailServers and applications · github:wagtail/wagtail
  • Version 7.3

About Wagtail

website content management system

From Wikidata, CC0 1.0.
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

ReleaseLatestSecurity fixes
8.18.1Until 4 May 2027
8.08.0.1Until 2 Feb 2027
7.4 (LTS)LTS7.4.4Until 2 Nov 2027
7.37.3.4Ended 25 Aug 2026
7.27.2.3Ended 4 May 2026
7.17.1.3Ended 2 Feb 2026

From endoflife.date.

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