# CVE-2022-23499: Cross-Site Scripting Protection bypass in 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.48%, higher than 43% of CVEs (2026-12-01)
- Published: 2022-12-13T16:59:12.000Z
- Modified: 2026-06-17T04:30:14.683Z
- Also known as: GHSA-hvwx-qh2h-xcfj
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

HTML sanitizer is written in PHP, aiming to provide XSS-safe markup based on explicitly allowed tags, attributes and values. In versions prior to 1.5.0 or 2.1.1,  malicious markup used in a sequence with special HTML CDATA sections cannot be filtered and sanitized due to a parsing issue in the upstream package masterminds/html5. This allows bypassing the cross-site scripting mechanism of typo3/html-sanitizer. The upstream package masterminds/html5 provides HTML raw text elements (`script`, `style`, `noframes`, `noembed` and `iframe`) as DOMText nodes, which were not processed and sanitized further. None of the mentioned elements were defined in the default builder configuration, that's why only custom behaviors, using one of those tag names, were vulnerable to cross-site scripting. This issue has been fixed in versions 1.5.0 and 2.1.1.

(As written by CVE List.)

## Affected

- TYPO3 html-sanitizer: >= 1.0.0, < 1.5.0; >= 2.0.0, < 2.1.1
- typo3/html-sanitizer (Packagist): from 1.0.0 before 1.5.0; from 2.0.0 before 2.1.1
- typo3/cms (Packagist): from 10.0.0 before 10.4.33; from 11.0.0 before 11.5.20; from 12.0.0 before 12.1.1
- typo3 html_sanitizer: from 1.0.0 up to 1.0.7; from 2.0.0 before 2.1.1

## 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-hvwx-qh2h-xcfj> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-23499> (advisory)
- <https://github.com/TYPO3/html-sanitizer/pull/105> (web)
- <https://github.com/TYPO3/html-sanitizer/pull/106> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms/CVE-2022-23499.yaml> (web)
- <https://github.com/TYPO3/html-sanitizer> (package)
- <https://github.com/TYPO3/html-sanitizer/releases/tag/v1.5.0> (web)
- <https://github.com/TYPO3/html-sanitizer/releases/tag/v2.1.1> (web)
- <https://typo3.org/security/advisory/typo3-core-sa-2022-017> (web)

## Sources

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

---

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