{"answers":{"affected":"10 open source packages ship an affected version, including typo3/html-sanitizer and typo3/cms. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-23499 in the wild and no public exploit code.","fix":"Upgrade typo3/html-sanitizer to a fixed version for your release line: 1.5.0 or 2.1.1.","what":"CVE-2022-23499 is a medium-severity cross-site scripting vulnerability in TYPO3 html-sanitizer, published on 13 Dec 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-23499 and fix it if it is affected.\n\nWhat it is: CVE-2022-23499 is a medium-severity cross-site scripting vulnerability in TYPO3 html-sanitizer, published on 13 Dec 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-23499 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- typo3/html-sanitizer (Packagist): affected from 1.0.0; fixed in 1.5.0\n- typo3/html-sanitizer (Packagist): affected from 1.0.0; fixed in 1.5.0\n- typo3/html-sanitizer (Packagist): affected from 2.0.0; fixed in 2.1.1\n- typo3/html-sanitizer (Packagist): affected from 2.0.0; fixed in 2.1.1\n- typo3/cms (Packagist): affected from 10.0.0; fixed in 10.4.33\n- typo3/cms (Packagist): affected from 10.0.0; fixed in 10.4.33\n- typo3/cms (Packagist): affected from 11.0.0; fixed in 11.5.20\n- typo3/cms (Packagist): affected from 11.0.0; fixed in 11.5.20\n- typo3/cms (Packagist): affected from 12.0.0; fixed in 12.1.1\n- typo3/cms (Packagist): affected from 12.0.0; fixed in 12.1.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-2022-23499/ (Markdown: https://insights.sbomify.com/CVE-2022-23499/index.md)","id":"CVE-2022-23499","markdown":"https://insights.sbomify.com/CVE-2022-23499/index.md","name":"CVE-2022-23499","record":{"aliases":["GHSA-hvwx-qh2h-xcfj"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"PHP HTML Sanitizer","requires_auth":"none","summary":"Attacker can bypass XSS protection in custom HTML sanitizer configurations using specific CDATA sequences, leading to script execution.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"html_sanitizer","vendor":"typo3"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"HTML sanitizer is written in PHP, aiming to provide XSS-safe markup based on explicitly allowed tags, attributes and values. In versions prior to 1.5.0 or 2.1.1,  malicious markup used in a sequence with special HTML CDATA sections cannot be filtered and sanitized due to a parsing issue in the upstream package masterminds/html5. This allows bypassing the cross-site scripting mechanism of typo3/html-sanitizer. The upstream package masterminds/html5 provides HTML raw text elements (`script`, `style`, `noframes`, `noembed` and `iframe`) as DOMText nodes, which were not processed and sanitized further. None of the mentioned elements were defined in the default builder configuration, that's why only custom behaviors, using one of those tag names, were vulnerable to cross-site scripting. This issue has been fixed in versions 1.5.0 and 2.1.1.","ecosystems":["Packagist"],"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":"Cross-Site Scripting Protection bypass in HTML Sanitizer","id":"CVE-2022-23499","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"xss","year":"2022"},"n_packages":10,"n_references":1,"next":{"headline":"TYPO3 subject to Uncontrolled Recursion resulting in Denial of Service","id":"CVE-2022-23500"},"packages":[{"ecosystem":"Packagist","fixed":["10.4.33"],"introduced":["10.0.0"],"last_affected":[],"package":"typo3/cms","purl":null,"source":"GHSA-hvwx-qh2h-xcfj"},{"ecosystem":"Packagist","fixed":["10.4.33"],"introduced":["10.0.0"],"last_affected":[],"package":"typo3/cms","purl":"pkg:composer/typo3/cms","source":"GHSA-hvwx-qh2h-xcfj"},{"ecosystem":"Packagist","fixed":["11.5.20"],"introduced":["11.0.0"],"last_affected":[],"package":"typo3/cms","purl":null,"source":"GHSA-hvwx-qh2h-xcfj"},{"ecosystem":"Packagist","fixed":["11.5.20"],"introduced":["11.0.0"],"last_affected":[],"package":"typo3/cms","purl":"pkg:composer/typo3/cms","source":"GHSA-hvwx-qh2h-xcfj"},{"ecosystem":"Packagist","fixed":["12.1.1"],"introduced":["12.0.0"],"last_affected":[],"package":"typo3/cms","purl":null,"source":"GHSA-hvwx-qh2h-xcfj"},{"ecosystem":"Packagist","fixed":["12.1.1"],"introduced":["12.0.0"],"last_affected":[],"package":"typo3/cms","purl":"pkg:composer/typo3/cms","source":"GHSA-hvwx-qh2h-xcfj"},{"ecosystem":"Packagist","fixed":["1.5.0"],"introduced":["1.0.0"],"last_affected":[],"package":"typo3/html-sanitizer","purl":null,"source":"GHSA-hvwx-qh2h-xcfj"},{"ecosystem":"Packagist","fixed":["1.5.0"],"introduced":["1.0.0"],"last_affected":[],"package":"typo3/html-sanitizer","purl":"pkg:composer/typo3/html-sanitizer","source":"GHSA-hvwx-qh2h-xcfj"},{"ecosystem":"Packagist","fixed":["2.1.1"],"introduced":["2.0.0"],"last_affected":[],"package":"typo3/html-sanitizer","purl":null,"source":"GHSA-hvwx-qh2h-xcfj"},{"ecosystem":"Packagist","fixed":["2.1.1"],"introduced":["2.0.0"],"last_affected":[],"package":"typo3/html-sanitizer","purl":"pkg:composer/typo3/html-sanitizer","source":"GHSA-hvwx-qh2h-xcfj"}],"prev":{"headline":"When query caching is enabled in Grafana users can query another users session","id":"CVE-2022-23498"},"products":["html-sanitizer"],"published":"2022-12-13","related":[{"cvss_score":6.1,"headline":"Bypass of Cross-Site Scripting Protection in typo3/html-sanitizer","id":"CVE-2022-36020","kev_date_added":null,"published":"2022-09-13"},{"cvss_score":4.7,"headline":"By-passing Cross-Site Scripting Protection in HTML Sanitizer","id":"CVE-2023-47125","kev_date_added":null,"published":"2023-11-14"},{"cvss_score":4.7,"headline":"By-passing Cross-Site Scripting Protection in HTML Sanitizer","id":"CVE-2023-38500","kev_date_added":null,"published":"2023-07-25"}],"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":"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":"partial"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["TYPO3"]},"summary":"Attacker can bypass XSS protection in custom HTML sanitizer configurations using specific CDATA sequences, leading to script execution.","url":"https://insights.sbomify.com/CVE-2022-23499/"}