{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-36020","id":"CVE-2022-36020","title":"Bypass of Cross-Site Scripting Protection in typo3/html-sanitizer","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/","descriptionLong":"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.","published":"2022-09-13T16:55:10.000Z","updated":"2026-10-28T02:31:03.022396768Z","reserved":"2022-07-15T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["TYPO3 html-sanitizer"],"affectedProducts":[{"vendor":"TYPO3","product":"html-sanitizer","defaultStatus":null,"versions":[{"status":"affected","version":">= 1.0.0, < 1.0.7"},{"status":"affected","version":">= 2.0.0, < 2.0.16"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"typo3/html-sanitizer","purl":"pkg:composer/typo3/html-sanitizer","ranges":[">=1.0.0 <1.0.7",">=2.0.0 <2.0.16"],"fixed":["1.0.7","2.0.16"],"advisory":"GHSA-47m6-46mj-p235"},{"ecosystem":"Packagist","name":"typo3/cms-core","purl":"pkg:composer/typo3/cms-core","ranges":[">=10.0.0 <10.4.32",">=11.0.0 <11.5.16"],"fixed":["10.4.32","11.5.16"],"advisory":"GHSA-47m6-46mj-p235"},{"ecosystem":"Packagist","name":"typo3/cms","purl":"pkg:composer/typo3/cms","ranges":[">=10.0.0 <10.4.32",">=11.0.0 <11.5.16"],"fixed":["10.4.32","11.5.16"],"advisory":"GHSA-47m6-46mj-p235"}],"cwes":["CWE-79"],"aliases":["GHSA-47m6-46mj-p235"],"references":[{"url":"https://github.com/TYPO3/html-sanitizer/security/advisories/GHSA-47m6-46mj-p235","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/TYPO3/html-sanitizer/commit/60bfdc7f9b394d0236e16ee4cea8372a7defa493","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://packagist.org/packages/masterminds/html5","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web"]},{"url":"https://packagist.org/packages/typo3/html-sanitizer","tags":["x_refsource_MISC","x_transferred","Product","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/36xxx/CVE-2022-36020.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36020","tags":["advisory"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms-core/CVE-2022-36020.yaml","tags":["web"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms/CVE-2022-36020.yaml","tags":["web"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/html-sanitizer/CVE-2022-36020.yaml","tags":["web"]},{"url":"https://github.com/TYPO3/html-sanitizer","tags":["package"]},{"url":"https://typo3.org/security/advisory/typo3-core-sa-2022-011","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00842,"epssPercentile":0.58617,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-36020","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36020","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-36020","ok":true,"note":"3 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-47m6-46mj-p235","ok":true,"note":"GHSA-47m6-46mj-p235"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-36020","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}