XSS via HTML CDATA in typo3/html-sanitizer <1.5.0/2.1.1
CVE-2022-23499 Published on December 13, 2022

Cross-Site Scripting Protection bypass in HTML Sanitizer
HTML sanitizer is written in PHP, aiming to provide XSS-safe markup based on explicitly allowed tags, attributes and values. In versions prior to 1.5.0 or 2.1.1, malicious markup used in a sequence with special HTML CDATA sections cannot be filtered and sanitized due to a parsing issue in the upstream package masterminds/html5. 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. None of the mentioned elements were defined in the default builder configuration, that's why only custom behaviors, using one of those tag names, were vulnerable to cross-site scripting. This issue has been fixed in versions 1.5.0 and 2.1.1.

Github Repository NVD

Vulnerability Analysis

CVE-2022-23499 can be exploited with network access, requires user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have a small impact on confidentiality and integrity, and no impact on availability.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
NONE
User Interaction:
REQUIRED
Scope:
CHANGED
Confidentiality Impact:
LOW
Integrity Impact:
LOW
Availability Impact:
NONE

Weakness Type

What is a XSS Vulnerability?

The software 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.

CVE-2022-23499 has been classified to as a XSS vulnerability or weakness.


Products Associated with CVE-2022-23499

Want to know whenever a new CVE is published for TYPO3 Html Sanitizer? stack.watch will email you.

 

Affected Versions

TYPO3 html-sanitizer:

Vulnerable Packages

The following package name and versions may be associated with CVE-2022-23499

Package Manager Vulnerable Package Versions Fixed In
composer typo3/html-sanitizer >= 1.0.0, < 1.5.0 1.5.0
composer typo3/html-sanitizer >= 2.0.0, < 2.1.1 2.1.1
composer typo3/cms >= 10.0.0, < 10.4.33 10.4.33
composer typo3/cms >= 11.0.0, < 11.5.20 11.5.20
composer typo3/cms >= 12.0.0, < 12.1.1 12.1.1

Exploit Probability

EPSS
0.23%
Percentile
46.03%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.