# CVE-2026-28222: Wagtail: Improper escaping of HTML (Cross-site Scripting) on TableBlock class attributes

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 45% of CVEs (2026-12-01)
- Published: 2026-03-03T17:57:18.000Z
- Modified: 2026-07-13T07:26:36.456Z
- Also known as: GHSA-p5cm-246w-84jm, PYSEC-2026-2307
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- wagtail wagtail: < 6.3.8; >= 6.4rc1, < 7.0.6; >= 7.1rc1, < 7.2.3; >= 7.3rc1, < 7.3.1
- wagtail (PyPI): before 6.3.8; from 6.4rc1 before 7.0.6; from 7.1rc1 before 7.2.3; from 7.3rc1 before 7.3.1; from 6.4 before 7.0.6; from 7.1 before 7.2.3
- torchbox wagtail: before 6.3.8; from 6.4 before 7.0.6; from 7.1 before 7.2.3; 7.3

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N`

## References

- <https://github.com/wagtail/wagtail/security/advisories/GHSA-p5cm-246w-84jm> (advisory, mitigation, vendor-advisory, web)
- <https://github.com/wagtail/wagtail/commit/0375094bb57ce6e527005c2bb2e871dd20bca04d> (fix, patch, web)
- <https://github.com/wagtail/wagtail/commit/4620423cb22c5253391a0f04178089c1162f6e2e> (fix, patch, web)
- <https://github.com/wagtail/wagtail/commit/575c0d7c18c7716ed73f7a3c2720ad75956f0a85> (fix, patch, web)
- <https://github.com/wagtail/wagtail/commit/605a5569686565e035313222e1bc2f9802fbc55b> (fix, patch, web)
- <https://github.com/wagtail/wagtail/releases/tag/v6.3.8> (advisory, product, release-notes, web)
- <https://github.com/wagtail/wagtail/releases/tag/v7.0.6> (advisory, product, release-notes, web)
- <https://github.com/wagtail/wagtail/releases/tag/v7.2.3> (advisory, product, release-notes, web)
- <https://github.com/wagtail/wagtail/releases/tag/v7.3.1> (advisory, product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-28222> (advisory)
- <https://github.com/wagtail/wagtail> (package)

## Sources

- CVE List: [CVE-2026-28222](https://www.cve.org/CVERecord?id=CVE-2026-28222), CVE Terms of Use, modified 2026-03-06
- GitHub Advisory Database: [GHSA-p5cm-246w-84jm](https://github.com/advisories/GHSA-p5cm-246w-84jm), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-28222](https://nvd.nist.gov/vuln/detail/CVE-2026-28222), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2307](https://osv.dev/vulnerability/PYSEC-2026-2307), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-28222 · Whole record: https://cve.day/CVE-2026-28222.json · Rebuilt by cve.day 2026-11-25T22:59:15.331Z
