🛡️ CVE-2023-47125 — html-sanitizer
Description
Bypassing Cross-Site Scripting Protection in TYPO3 HTML Sanitizer
> ### CVSS: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N/E:F/RL:O/RC:C (4.4)
Problem
DOM processing instructions are not handled correctly. This allows bypassing the cross-site scripting mechanism of [typo3/html-sanitizer](https://packagist.org/packages/typo3/html-sanitizer).
Solution
Update to typo3/html-sanitizer versions 1.5.3 or 2.1.4 that fix the problem described.
Credits
Thanks to Yaniv Nizry and Niels Dossche who reported this issue, and to TYPO3 core & security team member Oliver Hader who fixed the issue.
References
- [TYPO3-CORE-SA-2023-007](https://typo3.org/security/advisory/typo3-core-sa-2023-007)
- [Context & Details at
masterminds/html5](https://github.com/Masterminds/html5-php/issues/241)
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is high, 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-2023-47125 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-2023-47125 is recorded against 3 packages.
- html-sanitizer (from 2.0.0 up to 2.1.4)
- typo3
- typo3/html-sanitizer (from 2.0.0 up to 2.1.4)
Timeline and source
Published on 14 November 2023 and last revised on 17 June 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.
References
Details
CVSS:3.1/AV:N/AC:H/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.4 |
| typo3 | — | — |
| typo3/html-sanitizer | 2.0.0 | 2.1.4 |
References
Similar Threats
- High CVE-2024-34078
- Medium CVE-2023-38500
- Medium CVE-2022-23499
- Medium CVE-2022-36020
More CVE 2023 advisories
Browse all of CVE 2023 in the advisory index.
Vulnerability Monitoring
Track new vulnerabilities in html-sanitizer
CVE-2023-47125 is rated CVSS 5.0 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.