PT-2022-16031

CVE-2022-23499

·

Published

2022-12-13

·

Updated

2022-12-16

Description by

CVSS 3.1
6.1
Medium
MetricsAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions typo3/html-sanitizer versions prior to 1.5.0 or 2.1.1
Description The HTML sanitizer is written in PHP and aims to provide XSS-safe markup based on explicitly allowed tags, attributes, and values. However, due to a parsing issue in the upstream package masterminds/html5, malicious markup used in a sequence with special HTML CDATA sections cannot be filtered and sanitized. This allows bypassing the cross-site scripting mechanism of typo3/html-sanitizer. The upstream package masterminds/html5 provides HTML raw text elements (script, style, noframes, noembed, and iframe) as DOMText nodes, which were not processed and sanitized further. Only custom behaviors using one of those tag names were vulnerable to cross-site scripting.
Recommendations Update to version 1.5.0 or 2.1.1 to fix the issue. As a temporary workaround, consider disabling custom behaviors that use the script, style, noframes, noembed, or iframe tag names until a patch is available. Restrict access to the vulnerable masterminds/html5 package to minimize the risk of exploitation.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-HVWX-QH2H-XCFJ
Found an issue in the description? Have something to add? Feel free to write us 👾