XSS in TYPO3 Html-Sanitizer
CVE-2022-36020
- CVSS v3
- 6.1 Medium
- Public exploits
- None known
- EPSS
- 0.008 · 58.5th percentile
- Published
- 2022-09-13
The typo3/html-sanitizer package is an HTML sanitizer, written in PHP, aiming to provide XSS-safe markup based on explicitly allowed tags, attributes and values. Due to a parsing issue in the upstream package `masterminds/html5`, malicious markup used in a sequence with special HTML comments cannot be filtered and sanitized. This allows for a bypass of the cross-site scripting mechanism of `typo3/html-sanitizer`. This issue has been addressed in versions 1.0.7 and 2.0.16 of the `typo3/html-sanitizer` package. Users are advised to upgrade. There are no known workarounds for this issue.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.008, 58.5th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- TYPO3 Html-Sanitizer — versions >= 1.0.0, < 1.0.7, >= 2.0.0, < 2.0.16
- TYPO3 HTML Sanitizer
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (karimhabush/cyberowl). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/TYPO3/html-sanitizer/security/advisories/GHSA-47m6-46mj-p235 (Third Party Advisory)
- github.com/TYPO3/html-sanitizer/commit/60bfdc7f9b394d0236e16ee4cea8372a7defa493 (Patch, Third Party Advisory)
- packagist.org/packages/masterminds/html5 (Third Party Advisory)
- packagist.org/packages/typo3/html-sanitizer (Product, Third Party Advisory)