CVE-2023-47125 By-passing Cross-Site Scripting Protection in HTML Sanitizer
An attacker can bypass XSS protections in the TYPO3 HTML Sanitizer library by exploiting incorrect DOM processing instruction handling.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2023-47125?
CVE-2023-47125 is a medium-severity cross-site scripting vulnerability in Typo3 Typo3, published on 14 Nov 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
TYPO3 is an open source PHP based web content management system released under the GNU GPL. In affected versions DOM processing instructions are not handled correctly. This allows bypassing the cross-site scripting mechanism of typo3/html-sanitizer. This vulnerability has been addressed in versions 1.5.3 and 2.1.4. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Weakness: CWE-79
Which versions are affected by CVE-2023-47125?
5 open source packages ship an affected version, including typo3/html-sanitizer and typo3. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
typo3/html-sanitizer Packagist | From 1.0.0 | 1.5.3 |
typo3/html-sanitizer Packagist | From 1.0.0 | 1.5.3 |
typo3/html-sanitizer Packagist | From 2.0.0 | 2.1.4 |
typo3/html-sanitizer Packagist | From 2.0.0 | 2.1.4 |
typo3 Bitnami | From 8.7.42 | 8.7.55, 9.5.44, 10.4.41, 11.5.33, 12.4.8 |
Products include Typo3 Html Sanitizer, Typo3 Typo3.
How do I fix CVE-2023-47125?
Upgrade typo3/html-sanitizer to a fixed version for your release line: 1.5.3 or 2.1.4.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2023-47125 being exploited?
There is no known exploitation of CVE-2023-47125 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Typo3 Typo3
Sources
Also known as BIT-typo3-2023-47125, GHSA-mm79-jhqm-9j54.