# CVE-2022-36020: Bypass of Cross-Site Scripting Protection in typo3/html-sanitizer

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.87%, higher than 59% of CVEs (2026-12-02)
- Published: 2022-09-13T16:55:10.000Z
- Modified: 2026-06-17T04:52:45.347Z
- Also known as: GHSA-47m6-46mj-p235
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- TYPO3 html-sanitizer: >= 1.0.0, < 1.0.7; >= 2.0.0, < 2.0.16
- typo3/html-sanitizer (Packagist): from 1.0.0 before 1.0.7; from 2.0.0 before 2.0.16
- typo3/cms-core (Packagist): from 10.0.0 before 10.4.32; from 11.0.0 before 11.5.16
- typo3/cms (Packagist): from 10.0.0 before 10.4.32; from 11.0.0 before 11.5.16
- typo3 html_sanitizer: from 1.0.0 before 1.0.7; from 2.0.0 before 2.0.16

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/TYPO3/html-sanitizer/security/advisories/GHSA-47m6-46mj-p235> (third-party-advisory, web)
- <https://github.com/TYPO3/html-sanitizer/commit/60bfdc7f9b394d0236e16ee4cea8372a7defa493> (patch, third-party-advisory, web)
- <https://packagist.org/packages/masterminds/html5> (third-party-advisory, web)
- <https://packagist.org/packages/typo3/html-sanitizer> (product, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-36020> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms-core/CVE-2022-36020.yaml> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms/CVE-2022-36020.yaml> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/html-sanitizer/CVE-2022-36020.yaml> (web)
- <https://github.com/TYPO3/html-sanitizer> (package)
- <https://typo3.org/security/advisory/typo3-core-sa-2022-011> (web)

## Sources

- CVE List: [CVE-2022-36020](https://www.cve.org/CVERecord?id=CVE-2022-36020), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-47m6-46mj-p235](https://github.com/advisories/GHSA-47m6-46mj-p235), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-36020](https://nvd.nist.gov/vuln/detail/CVE-2022-36020), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-36020 · Whole record: https://cve.day/CVE-2022-36020.json · Rebuilt by cve.day 2026-11-25T22:58:14.870Z
