{"items":[{"id":"NVI-00016240","kind":"vulnerability","title":"Wagtail Vulnerable to Cross-site Scripting in TableBlock class attributes","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-p5cm-246w-84jm","CVE-2026-28222"],"plain_summary":"GitHub lists this reviewed advisory for wagtail, wagtail, wagtail, wagtail. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-528b989d5741c9f6ed00b8fd2cecdd1c"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-07-22T13:05:58.000Z","value":"6.1 medium","meaning":"GitHub source severity; exploitability and local consequence require separate evidence.","source_id":"sr-528b989d5741c9f6ed00b8fd2cecdd1c"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-528b989d5741c9f6ed00b8fd2cecdd1c","url":"https://github.com/advisories/GHSA-p5cm-246w-84jm","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-p5cm-246w-84jm","publisher":"GitHub Advisory Database","observed_at":"2026-11-03T22:34:39.734Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-528b989d5741c9f6ed00b8fd2cecdd1c"],"technology":"wagtail","known_exclusions":[],"conditions_summary":"### Impact\nA 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.\n\n### Patches\nPatched versions have been released as Wagtail 6.3.8, 7.0.6, 7.2.3 and 7.3.1.\n\n### Workarounds\nSite 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:\n\n```django\n\n\n    {% if table_caption %}\n        {{ table_caption }}\n    {% endif %}\n    {% if table_header %}\n        \n            \n                {% for cell in","public_affected_ranges":["< 6.3.8"]},{"certainty":"source_listed","source_ids":["sr-528b989d5741c9f6ed00b8fd2cecdd1c"],"technology":"wagtail","known_exclusions":[],"conditions_summary":"### Impact\nA 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.\n\n### Patches\nPatched versions have been released as Wagtail 6.3.8, 7.0.6, 7.2.3 and 7.3.1.\n\n### Workarounds\nSite 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:\n\n```django\n\n\n    {% if table_caption %}\n        {{ table_caption }}\n    {% endif %}\n    {% if table_header %}\n        \n            \n                {% for cell in","public_affected_ranges":[">= 6.4rc1, < 7.0.6"]},{"certainty":"source_listed","source_ids":["sr-528b989d5741c9f6ed00b8fd2cecdd1c"],"technology":"wagtail","known_exclusions":[],"conditions_summary":"### Impact\nA 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.\n\n### Patches\nPatched versions have been released as Wagtail 6.3.8, 7.0.6, 7.2.3 and 7.3.1.\n\n### Workarounds\nSite 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:\n\n```django\n\n\n    {% if table_caption %}\n        {{ table_caption }}\n    {% endif %}\n    {% if table_header %}\n        \n            \n                {% for cell in","public_affected_ranges":[">= 7.1rc1, < 7.2.3"]},{"certainty":"source_listed","source_ids":["sr-528b989d5741c9f6ed00b8fd2cecdd1c"],"technology":"wagtail","known_exclusions":[],"conditions_summary":"### Impact\nA 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.\n\n### Patches\nPatched versions have been released as Wagtail 6.3.8, 7.0.6, 7.2.3 and 7.3.1.\n\n### Workarounds\nSite 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:\n\n```django\n\n\n    {% if table_caption %}\n        {{ table_caption }}\n    {% endif %}\n    {% if table_header %}\n        \n            \n                {% for cell in","public_affected_ranges":[">= 7.3rc1, < 7.3.1"]}],"null_published_at":"2026-11-04T10:04:27.922Z","source_updated_at":"2026-07-22T13:05:58.000Z","source_disclosed_at":"2026-03-03T17:57:18.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-11-03T22:34:39.734Z"}],"next_cursor":null,"snapshot_revision":"42594"}