{"id":"CVE-2022-36020","published":"2022-09-13T16:55:10Z","modified":"2025-04-23T17:11:55Z","title":"Bypass of Cross-Site Scripting Protection in typo3/html-sanitizer","vendor":"TYPO3","product":"html-sanitizer","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00842,"percentile":0.58799,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/TYPO3/html-sanitizer/security/advisories/GHSA-47m6-46mj-p235","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/TYPO3/html-sanitizer/commit/60bfdc7f9b394d0236e16ee4cea8372a7defa493","tags":["x_refsource_MISC"]},{"url":"https://packagist.org/packages/masterminds/html5","tags":["x_refsource_MISC"]},{"url":"https://packagist.org/packages/typo3/html-sanitizer","tags":["x_refsource_MISC"]}],"priority":{"score":16.0,"factors":[{"name":"EPSS percentile","points":11.76},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"typo3","affectedVersions":[{"vendor":"TYPO3","product":"html-sanitizer","versions":[">= 1.0.0, < 1.0.7",">= 2.0.0, < 2.0.16"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:00:57.275230Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"typo3/html-sanitizer","vulnerableRanges":[">=1.0.0, <1.0.7",">=2.0.0, <2.0.16"],"patched":["1.0.7","2.0.16"],"from":["GHSA-47m6-46mj-p235"],"provenance":"source"},{"ecosystem":"Packagist","package":"typo3/cms-core","vulnerableRanges":[">=10.0.0, <10.4.32",">=11.0.0, <11.5.16"],"patched":["10.4.32","11.5.16"],"from":["GHSA-47m6-46mj-p235"],"provenance":"source"},{"ecosystem":"Packagist","package":"typo3/cms","vulnerableRanges":[">=10.0.0, <10.4.32",">=11.0.0, <11.5.16"],"patched":["10.4.32","11.5.16"],"from":["GHSA-47m6-46mj-p235"],"provenance":"source"}],"summary":{"text":"A parsing flaw in the upstream masterminds/html5 package, used by TYPO3's html-sanitizer library (a PHP HTML sanitizer intended to produce XSS-safe markup from an explicit allowlist of tags, attributes and values), lets malicious markup combined with special HTML comments evade filtering. An remote attacker without authentication or privileges can exploit this by getting a victim user to interact with crafted content, such as visiting a page or following a link, which bypasses the sanitizer's cross-site scripting protection.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:34Z"},"euvd":{"id":"EUVD-2022-6685","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-typo3-html-sanitizer-cve-2022-36020","packageHistory":[{"cve":"CVE-2022-36020","published":"2022-09-13","fixed":"2.0.16","kev":false},{"cve":"CVE-2022-23499","published":"2022-12-13","fixed":"2.1.1","kev":false,"link":{"from":"CVE-2022-36020","to":"CVE-2022-23499","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:typo3/html-sanitizer","fromFixed":"1.0.7","toFixed":"1.5.0","daysApart":91},{"kind":"version-step","provenance":"source","package":"Packagist:typo3/html-sanitizer","fromFixed":"2.0.16","toFixed":"2.1.1","daysApart":91},{"kind":"similar","provenance":"machine","score":0.56,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2023-38500","published":"2023-07-25","fixed":"2.1.2","kev":false},{"cve":"CVE-2023-47125","published":"2023-11-14","fixed":"2.1.4","kev":false}],"package":"Packagist:typo3/html-sanitizer"}}