{"answers":{"affected":"9 open source packages ship an affected version, including wagtail. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-28222 in the wild and no public exploit code.","fix":"Upgrade wagtail to a fixed version for your release line: 6.3.8, 7.0.6, 7.2.3 or 7.3.1.","what":"CVE-2026-28222 is a medium-severity cross-site scripting vulnerability in wagtail, published on 5 Mar 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-28222 and fix it if it is affected.\n\nWhat it is: CVE-2026-28222 is a medium-severity cross-site scripting vulnerability in wagtail, published on 5 Mar 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-28222 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- wagtail (PyPI): affected all versions; fixed in 6.3.8, 7.0.6, 7.2.3\n- wagtail (PyPI): affected all versions; fixed in 6.3.8\n- wagtail (PyPI): affected all versions; fixed in 6.3.8\n- wagtail (PyPI): affected from 6.4rc1; fixed in 7.0.6\n- wagtail (PyPI): affected from 6.4rc1; fixed in 7.0.6\n- wagtail (PyPI): affected from 7.1rc1; fixed in 7.2.3\n- wagtail (PyPI): affected from 7.1rc1; fixed in 7.2.3\n- wagtail (PyPI): affected from 7.3rc1; fixed in 7.3.1\n- wagtail (PyPI): affected from 7.3rc1; fixed in 7.3.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-28222/ (Markdown: https://insights.sbomify.com/CVE-2026-28222/index.md)","id":"CVE-2026-28222","markdown":"https://insights.sbomify.com/CVE-2026-28222/index.md","name":"CVE-2026-28222","record":{"aliases":["GHSA-p5cm-246w-84jm","PYSEC-2026-2307","ROOT-APP-PYPI-CVE-2026-28222"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["account_takeover","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Wagtail CMS","requires_auth":"high_privilege","summary":"Stored XSS in Wagtail TableBlock allows privileged users to execute arbitrary JavaScript, potentially leading to account takeover.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"wagtail","vendor":"torchbox"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Wagtail: Improper escaping of HTML (Cross-site Scripting) on TableBlock class attributes","id":"CVE-2026-28222","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":9,"n_references":9,"next":{"headline":"Wagtail: Improper escaping of HTML (Cross-site Scripting) in simple_translation admin interface","id":"CVE-2026-28223"},"packages":[{"ecosystem":"PyPI","fixed":["6.3.8","7.0.6","7.2.3"],"introduced":["0","6.4","7.1"],"last_affected":[],"package":"wagtail","purl":"pkg:pypi/wagtail","source":"PYSEC-2026-2307"},{"ecosystem":"PyPI","fixed":["6.3.8"],"introduced":["0"],"last_affected":[],"package":"wagtail","purl":null,"source":"GHSA-p5cm-246w-84jm"},{"ecosystem":"PyPI","fixed":["6.3.8"],"introduced":["0"],"last_affected":[],"package":"wagtail","purl":"pkg:pypi/wagtail","source":"GHSA-p5cm-246w-84jm"},{"ecosystem":"PyPI","fixed":["7.0.6"],"introduced":["6.4rc1"],"last_affected":[],"package":"wagtail","purl":null,"source":"GHSA-p5cm-246w-84jm"},{"ecosystem":"PyPI","fixed":["7.0.6"],"introduced":["6.4rc1"],"last_affected":[],"package":"wagtail","purl":"pkg:pypi/wagtail","source":"GHSA-p5cm-246w-84jm"},{"ecosystem":"PyPI","fixed":["7.2.3"],"introduced":["7.1rc1"],"last_affected":[],"package":"wagtail","purl":null,"source":"GHSA-p5cm-246w-84jm"},{"ecosystem":"PyPI","fixed":["7.2.3"],"introduced":["7.1rc1"],"last_affected":[],"package":"wagtail","purl":"pkg:pypi/wagtail","source":"GHSA-p5cm-246w-84jm"},{"ecosystem":"PyPI","fixed":["7.3.1"],"introduced":["7.3rc1"],"last_affected":[],"package":"wagtail","purl":null,"source":"GHSA-p5cm-246w-84jm"},{"ecosystem":"PyPI","fixed":["7.3.1"],"introduced":["7.3rc1"],"last_affected":[],"package":"wagtail","purl":"pkg:pypi/wagtail","source":"GHSA-p5cm-246w-84jm"}],"prev":{"headline":"Wazuh: Pre-auth stack-based buffer overflow in wazuh-remoted print_hex_string() due to signed char promotion on x86_64","id":"CVE-2026-28221"},"products":["wagtail"],"published":"2026-03-05","related":[{"cvss_score":7.3,"headline":"Wagtail: Reflected XSS in dynamic image URL generator view","id":"CVE-2026-54263","kev_date_added":null,"published":"2026-07-01"},{"cvss_score":6.5,"headline":"Wagtail: Improper permission handling in image preview","id":"CVE-2026-54261","kev_date_added":null,"published":"2026-07-01"},{"cvss_score":6.5,"headline":"Wagtail: Improper permission handling when comparing revisions","id":"CVE-2026-44197","kev_date_added":null,"published":"2026-05-11"},{"cvss_score":6.5,"headline":"Wagtail: Improper permission handling when deleting form submissions","id":"CVE-2026-44199","kev_date_added":null,"published":"2026-05-11"},{"cvss_score":6.5,"headline":"Wagtail: Improper permission handling when copying pages","id":"CVE-2026-44200","kev_date_added":null,"published":"2026-05-11"},{"cvss_score":6.5,"headline":"Wagtail regular expression denial-of-service via search query parsing","id":"CVE-2024-39317","kev_date_added":null,"published":"2024-07-11"},{"cvss_score":6.4,"headline":"Wagtail vulnerable to stored Cross-site Scripting attack via ModelAdmin views","id":"CVE-2023-28836","kev_date_added":null,"published":"2023-04-03"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-03-06","vendors":["wagtail"]},"summary":"Stored XSS in Wagtail TableBlock allows privileged users to execute arbitrary JavaScript, potentially leading to account takeover.","url":"https://insights.sbomify.com/CVE-2026-28222/"}