CVE-2026-47345
Received Received - Intake
XSS Bypass in TYPO3 HTML Sanitizer

Publication date: 2026-06-08

Last updated on: 2026-06-08

Assigner: TYPO3

Description
Namespace attributes are not encoded correctly during HTML serialization. This allows bypassing the cross-site scripting prevention mechanism of typo3/html-sanitizer before version 2.3.2.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-08
Last Modified
2026-06-08
Generated
2026-06-09
AI Q&A
2026-06-08
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
typo3 html-sanitizer to 2.3.2 (exc)
typo3 html_sanitizer to 2.3.2 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability occurs because namespace attributes are not encoded correctly during HTML serialization in the TYPO3/html-sanitizer before version 2.3.2.

As a result, attackers can bypass the cross-site scripting (XSS) prevention mechanisms, potentially injecting malicious scripts through improperly sanitized namespace attributes.

The security fix involved adding a method to properly encode namespace attributes, ensuring that XML namespace declarations are safely escaped to prevent XSS attacks.

Impact Analysis

This vulnerability can allow attackers to execute cross-site scripting (XSS) attacks by injecting malicious scripts through namespace attributes that are not properly encoded.

Such XSS attacks can lead to unauthorized actions on behalf of users, theft of sensitive information, session hijacking, or defacement of web content.

If your application uses TYPO3/html-sanitizer versions before 2.3.2, it may be vulnerable to these attacks, potentially compromising the security and integrity of your web application.

Detection Guidance

This vulnerability involves improper encoding of namespace attributes during HTML serialization in TYPO3/html-sanitizer before version 2.3.2, which can lead to XSS attacks.

To detect this vulnerability on your system, you should check the version of the TYPO3/html-sanitizer package in use and verify if it is older than 2.3.2.

There are no specific network or system commands provided to detect exploitation attempts or presence of this vulnerability.

However, you can inspect HTML or XML inputs processed by the sanitizer for unencoded namespace attributes that resemble patterns like `xmlns:x=""><img src=x onerror=alert(document.domain)>` which indicate potential exploitation.

For version checking, you might use commands like:

  • Check installed package version (example for composer): `composer show typo3/html-sanitizer`
  • Check source code for presence of the `namespaceAttrs` method in `src/Serializer/Rules.php` to confirm if the fix is applied.
Mitigation Strategies

The primary mitigation step is to upgrade the TYPO3/html-sanitizer package to version 2.3.2 or later, where the vulnerability has been fixed.

This update includes proper encoding of namespace attributes during HTML serialization, preventing XSS attacks.

If immediate upgrade is not possible, review and sanitize all inputs that may contain namespace attributes manually or apply additional filtering to prevent injection of malicious payloads.

Additionally, monitor your applications for suspicious HTML or XML content that could exploit this vulnerability.

Compliance Impact

The vulnerability in TYPO3/html-sanitizer allows bypassing cross-site scripting (XSS) prevention mechanisms due to improper encoding of namespace attributes during HTML serialization.

Such XSS vulnerabilities can lead to unauthorized script execution in users' browsers, potentially exposing sensitive data or enabling malicious actions.

This exposure can negatively impact compliance with data protection standards and regulations like GDPR and HIPAA, which require safeguarding personal and sensitive information against unauthorized access and attacks.

Therefore, failure to properly sanitize inputs and prevent XSS could result in violations of these regulations due to compromised data confidentiality and integrity.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-47345. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart