ADVISORIES

GitHub Advisory Database

GHSA-jvf5-rxvv-3mcg

TYPO3 HTML Sanitizer allows Cross-site Scripting

Details

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.

Credits to IPC Labs for reporting this vulnerability.

Affected packages

EcosystemPackageAffected versions
Packagisttypo3/html-sanitizer
All versions before 2.3.2 (fixed in 2.3.2)

References