🛡️ CVE-2022-23499 — html-sanitizer
Description
TYPO3 HTML Sanitizer vulnerable to Cross-Site Scripting
Problem
Due to a parsing issue in the upstream package [masterminds/html5](https://packagist.org/packages/masterminds/html5), malicious markup used in a sequence with special HTML CDATA sections cannot be filtered and sanitized. This allows bypassing the cross-site scripting mechanism of [typo3/html-sanitizer](https://packagist.org/packages/typo3/html-sanitizer).
Besides that, 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.
Solution
Update to typo3/html-sanitizer versions 1.5.0 or 2.1.1 that fix the problem described.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality low, integrity low, availability none.
Weakness class
CVE-2022-23499 is classified as CWE-79: Cross-site Scripting (XSS). User-supplied data is written into a page without escaping, so attacker script runs in the browser of anyone who views it.
Affected software
CVE-2022-23499 is recorded against 3 packages.
- html-sanitizer (from 2.0.0 up to 2.1.1)
- typo3/cms (from 12.0.0 up to 12.1.1)
- typo3/html-sanitizer (from 2.0.0 up to 2.1.1)
Timeline and source
Published on 13 December 2022 and last revised on 17 June 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.
References
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| html-sanitizer | 2.0.0 | 2.1.1 |
| typo3/cms | 12.0.0 | 12.1.1 |
| typo3/html-sanitizer | 2.0.0 | 2.1.1 |
References
Similar Threats
- High CVE-2024-34078
- Medium CVE-2023-47125
- Medium CVE-2023-38500
- Medium CVE-2022-36020
More CVE 2022 advisories
Browse all of CVE 2022 in the advisory index.
Vulnerability Monitoring
Track new vulnerabilities in html-sanitizer
CVE-2022-23499 is rated CVSS 6.1 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.
Set Up Free Alerts →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.