{"id":"CVE-2022-36020","aliases":["CVE-2022-36020","GHSA-47m6-46mj-p235"],"related":[],"kind":"vulnerability","state":"published","title":"Bypass of Cross-Site Scripting Protection in typo3/html-sanitizer","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"> ### Meta\n> * CVSS: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:F/RL:O/RC:C` (5.7)\n\n### Problem\nDue to a parsing issue in upstream package [`masterminds/html5`](https://packagist.org/packages/masterminds/html5), malicious markup used in a sequence with special HTML comments cannot be filtered and sanitized. This allows to by-pass the cross-site scripting mechanism of `typo3/html-sanitizer`.\n\n### Solution\nUpdate to `typo3/html-sanitizer` versions 1.0.7 or 2.0.16 that fix the problem described.\n\n### Credits\nThanks to David Klein who reported this issue, and to TYPO3 security team member Oliver Hader who fixed the issue.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete typo3/html-sanitizer es un saneador de HTML, escrito en PHP, cuyo objetivo es proporcionar un marcado seguro contra ataques de tipo XSS basado en etiquetas, atributos y valores explícitamente permitidos. Debido a un problema de análisis en el paquete upstream \"masterminds/html5\", el marcado malicioso usado en una secuencia con comentarios HTML especiales no puede ser filtrado y saneado. Esto permite omitir el mecanismo de tipo cross-site scripting de \"typo3/html-sanitizer\". Este problema ha sido abordado en versiones 1.0.7 y 2.0.16 del paquete \"typo3/html-sanitizer\". Es recomendado a usuarios actualizar. No se presentan mitigaciones conocidas para este problema","source":"nvd"}],"published":"2022-09-13T16:55:10.000Z","modified":"2026-06-17T04:52:45.347Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 1.0.0, < 1.0.7","status":"affected"},{"version":">= 2.0.0, < 2.0.16","status":"affected"}],"vendor":"TYPO3","product":"html-sanitizer","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"1.0.0","status":"affected","fixed":"1.0.7"}],"ecosystem":"Packagist","package":"typo3/html-sanitizer","purl":"pkg:composer/typo3/html-sanitizer","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.16"}],"ecosystem":"Packagist","package":"typo3/html-sanitizer","purl":"pkg:composer/typo3/html-sanitizer","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"10.0.0","status":"affected","fixed":"10.4.32"}],"ecosystem":"Packagist","package":"typo3/cms-core","purl":"pkg:composer/typo3/cms-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"11.0.0","status":"affected","fixed":"11.5.16"}],"ecosystem":"Packagist","package":"typo3/cms-core","purl":"pkg:composer/typo3/cms-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"10.0.0","status":"affected","fixed":"10.4.32"}],"ecosystem":"Packagist","package":"typo3/cms","purl":"pkg:composer/typo3/cms","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"11.0.0","status":"affected","fixed":"11.5.16"}],"ecosystem":"Packagist","package":"typo3/cms","purl":"pkg:composer/typo3/cms","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.0.0","fixed":"1.0.7"},{"status":"affected","introduced":"2.0.0","fixed":"2.0.16"}],"vendor":"typo3","product":"html_sanitizer","cpe":"cpe:2.3:a:typo3:html_sanitizer:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/TYPO3/html-sanitizer/security/advisories/GHSA-47m6-46mj-p235","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/TYPO3/html-sanitizer/commit/60bfdc7f9b394d0236e16ee4cea8372a7defa493","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://packagist.org/packages/masterminds/html5","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://packagist.org/packages/typo3/html-sanitizer","tags":["product","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36020","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms-core/CVE-2022-36020.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms/CVE-2022-36020.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/html-sanitizer/CVE-2022-36020.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/TYPO3/html-sanitizer","tags":["package"],"sources":["ghsa"]},{"url":"https://typo3.org/security/advisory/typo3-core-sa-2022-011","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T14:00:57.275Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-36020","url":"https://www.cve.org/CVERecord?id=CVE-2022-36020","licence":"CVE Terms of Use","modified":"2025-04-23T17:11:55.867Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-47m6-46mj-p235","url":"https://github.com/advisories/GHSA-47m6-46mj-p235","licence":"CC-BY-4.0","modified":"2023-11-08T04:09:57.810Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-36020","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36020","licence":"Public domain","modified":"2026-06-17T04:52:45.347Z"}],"updatedAt":"2026-11-25T22:58:14.870Z","epss":{"score":0.00867,"percentile":0.59822,"date":"2026-12-02T12:00:21.000Z"}}