{"id":"CVE-2026-28222","published":"2026-03-05T18:58:20Z","modified":"2026-03-06T18:05:28Z","title":"Wagtail: Improper escaping of HTML (Cross-site Scripting) on TableBlock class attributes","vendor":"wagtail","product":"wagtail","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00503,"percentile":0.43924,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/wagtail/wagtail/security/advisories/GHSA-p5cm-246w-84jm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/wagtail/wagtail/commit/0375094bb57ce6e527005c2bb2e871dd20bca04d","tags":["x_refsource_MISC"]},{"url":"https://github.com/wagtail/wagtail/commit/4620423cb22c5253391a0f04178089c1162f6e2e","tags":["x_refsource_MISC"]},{"url":"https://github.com/wagtail/wagtail/commit/575c0d7c18c7716ed73f7a3c2720ad75956f0a85","tags":["x_refsource_MISC"]},{"url":"https://github.com/wagtail/wagtail/commit/605a5569686565e035313222e1bc2f9802fbc55b","tags":["x_refsource_MISC"]},{"url":"https://github.com/wagtail/wagtail/releases/tag/v6.3.8","tags":["x_refsource_MISC"]},{"url":"https://github.com/wagtail/wagtail/releases/tag/v7.0.6","tags":["x_refsource_MISC"]},{"url":"https://github.com/wagtail/wagtail/releases/tag/v7.2.3","tags":["x_refsource_MISC"]},{"url":"https://github.com/wagtail/wagtail/releases/tag/v7.3.1","tags":["x_refsource_MISC"]}],"priority":{"score":13.1,"factors":[{"name":"EPSS percentile","points":8.78},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"wagtail","affectedVersions":[{"vendor":"wagtail","product":"wagtail","versions":["< 6.3.8",">= 6.4rc1, < 7.0.6",">= 7.1rc1, < 7.2.3",">= 7.3rc1, < 7.3.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-03-06T18:05:22.577268Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"wagtail","vulnerableRanges":["<6.3.8",">=6.4rc1, <7.0.6",">=7.1rc1, <7.2.3",">=7.3rc1, <7.3.1",">=6.4, <7.0.6",">=7.1, <7.2.3"],"patched":["6.3.8","7.0.6","7.2.3","7.3.1"],"from":["GHSA-p5cm-246w-84jm","PYSEC-2026-2307"],"provenance":"source"}],"summary":{"text":"The Wagtail CMS, a Django-based content management system, fails to properly escape HTML in class attributes when rendering TableBlock blocks within a StreamField, enabling stored cross-site scripting. An attacker who holds privileges to create or edit pages containing TableBlock blocks, and who can get a higher-privileged user to view the page, can inject class attributes that run arbitrary JavaScript in that user's browser, potentially acting with their credentials; ordinary site visitors without Wagtail admin access cannot exploit it, and only sites using TableBlock are affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:52:17Z"},"euvd":{"id":"EUVD-2026-9858","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-35228","published":"2024-05-30","fixed":"6.1.2","kev":false},{"cve":"CVE-2024-39317","published":"2024-07-11","fixed":"6.1.3","kev":false},{"cve":"CVE-2026-25517","published":"2026-02-04","fixed":"7.3","kev":false,"link":{"from":"CVE-2026-25517","to":"CVE-2026-28222","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:wagtail","fromFixed":"7.3","toFixed":"7.3.1","daysApart":29},{"kind":"version-step","provenance":"source","package":"PyPI:wagtail","fromFixed":"6.3.6","toFixed":"6.3.8","daysApart":29}]}},{"cve":"CVE-2026-28222","published":"2026-03-05","fixed":"7.3.1","kev":false},{"cve":"CVE-2026-28223","published":"2026-03-05","fixed":"7.3.1","kev":false},{"cve":"CVE-2026-44197","published":"2026-05-11","fixed":"7.3.2","kev":false},{"cve":"CVE-2026-44198","published":"2026-05-11","fixed":"7.3.2","kev":false}],"package":"PyPI:wagtail"}}