{"answers":{"affected":"12 open source packages ship an affected version, including typo3/html-sanitizer, typo3/cms and typo3/cms-core. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-36020 in the wild and no public exploit code.","fix":"Upgrade typo3/html-sanitizer to a fixed version for your release line: 1.0.7 or 2.0.16.","what":"CVE-2022-36020 is a medium-severity cross-site scripting vulnerability in TYPO3 html-sanitizer, published on 13 Sep 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-36020 and fix it if it is affected.\n\nWhat it is: CVE-2022-36020 is a medium-severity cross-site scripting vulnerability in TYPO3 html-sanitizer, published on 13 Sep 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-36020 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.0.7\n- typo3/html-sanitizer (Packagist): affected from 1.0.0; fixed in 1.0.7\n- typo3/html-sanitizer (Packagist): affected from 2.0.0; fixed in 2.0.16\n- typo3/html-sanitizer (Packagist): affected from 2.0.0; fixed in 2.0.16\n- typo3/cms (Packagist): affected from 10.0.0; fixed in 10.4.32\n- typo3/cms (Packagist): affected from 10.0.0; fixed in 10.4.32\n- typo3/cms (Packagist): affected from 11.0.0; fixed in 11.5.16\n- typo3/cms (Packagist): affected from 11.0.0; fixed in 11.5.16\n- typo3/cms-core (Packagist): affected from 10.0.0; fixed in 10.4.32\n- typo3/cms-core (Packagist): affected from 10.0.0; fixed in 10.4.32\n- typo3/cms-core (Packagist): affected from 11.0.0; fixed in 11.5.16\n- typo3/cms-core (Packagist): affected from 11.0.0; fixed in 11.5.16\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-36020/ (Markdown: https://insights.sbomify.com/CVE-2022-36020/index.md)","id":"CVE-2022-36020","markdown":"https://insights.sbomify.com/CVE-2022-36020/index.md","name":"CVE-2022-36020","record":{"aliases":["GHSA-47m6-46mj-p235"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"PHP HTML sanitizer","requires_auth":"none","summary":"Attackers can bypass XSS protections in the TYPO3 HTML sanitizer library via malicious markup, requiring an upgrade to secure applications.","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":"The typo3/html-sanitizer package is an HTML sanitizer, written in PHP, aiming to provide XSS-safe markup based on explicitly allowed tags, attributes and values. Due to a parsing issue in the upstream package `masterminds/html5`, malicious markup used in a sequence with special HTML comments cannot be filtered and sanitized. This allows for a bypass of the cross-site scripting mechanism of `typo3/html-sanitizer`. This issue has been addressed in versions 1.0.7 and 2.0.16 of the `typo3/html-sanitizer` package. Users are advised to upgrade. There are no known workarounds for this issue.","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":"Bypass of Cross-Site Scripting Protection in typo3/html-sanitizer","id":"CVE-2022-36020","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"xss","year":"2022"},"n_packages":12,"n_references":4,"next":{"headline":"Redis string pattern matching can be abused to achieve Denial of Service","id":"CVE-2022-36021"},"packages":[{"ecosystem":"Packagist","fixed":["10.4.32"],"introduced":["10.0.0"],"last_affected":[],"package":"typo3/cms","purl":null,"source":"GHSA-47m6-46mj-p235"},{"ecosystem":"Packagist","fixed":["10.4.32"],"introduced":["10.0.0"],"last_affected":[],"package":"typo3/cms","purl":"pkg:composer/typo3/cms","source":"GHSA-47m6-46mj-p235"},{"ecosystem":"Packagist","fixed":["11.5.16"],"introduced":["11.0.0"],"last_affected":[],"package":"typo3/cms","purl":null,"source":"GHSA-47m6-46mj-p235"},{"ecosystem":"Packagist","fixed":["11.5.16"],"introduced":["11.0.0"],"last_affected":[],"package":"typo3/cms","purl":"pkg:composer/typo3/cms","source":"GHSA-47m6-46mj-p235"},{"ecosystem":"Packagist","fixed":["10.4.32"],"introduced":["10.0.0"],"last_affected":[],"package":"typo3/cms-core","purl":null,"source":"GHSA-47m6-46mj-p235"},{"ecosystem":"Packagist","fixed":["10.4.32"],"introduced":["10.0.0"],"last_affected":[],"package":"typo3/cms-core","purl":"pkg:composer/typo3/cms-core","source":"GHSA-47m6-46mj-p235"},{"ecosystem":"Packagist","fixed":["11.5.16"],"introduced":["11.0.0"],"last_affected":[],"package":"typo3/cms-core","purl":null,"source":"GHSA-47m6-46mj-p235"},{"ecosystem":"Packagist","fixed":["11.5.16"],"introduced":["11.0.0"],"last_affected":[],"package":"typo3/cms-core","purl":"pkg:composer/typo3/cms-core","source":"GHSA-47m6-46mj-p235"},{"ecosystem":"Packagist","fixed":["1.0.7"],"introduced":["1.0.0"],"last_affected":[],"package":"typo3/html-sanitizer","purl":null,"source":"GHSA-47m6-46mj-p235"},{"ecosystem":"Packagist","fixed":["1.0.7"],"introduced":["1.0.0"],"last_affected":[],"package":"typo3/html-sanitizer","purl":"pkg:composer/typo3/html-sanitizer","source":"GHSA-47m6-46mj-p235"},{"ecosystem":"Packagist","fixed":["2.0.16"],"introduced":["2.0.0"],"last_affected":[],"package":"typo3/html-sanitizer","purl":null,"source":"GHSA-47m6-46mj-p235"},{"ecosystem":"Packagist","fixed":["2.0.16"],"introduced":["2.0.0"],"last_affected":[],"package":"typo3/html-sanitizer","purl":"pkg:composer/typo3/html-sanitizer","source":"GHSA-47m6-46mj-p235"}],"prev":{"headline":"`CHECK` fail in `FakeQuantWithMinMaxVarsPerChannel` in TensorFlow","id":"CVE-2022-36019"},"products":["html-sanitizer"],"published":"2022-09-13","related":[{"cvss_score":6.1,"headline":"Cross-Site Scripting Protection bypass in HTML Sanitizer","id":"CVE-2022-23499","kev_date_added":null,"published":"2022-12-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":"Attackers can bypass XSS protections in the TYPO3 HTML sanitizer library via malicious markup, requiring an upgrade to secure applications.","url":"https://insights.sbomify.com/CVE-2022-36020/"}