🛡️ CVE-2022-36020 — html-sanitizer
Description
TYPO3 HTML Sanitizer Bypasses Cross-Site Scripting Protection
> ### Meta
> * CVSS: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:F/RL:O/RC:C (5.7)
Problem
Due to a parsing issue in upstream package [masterminds/html5](https://packagist.org/packages/masterminds/html5), malicious markup used in a sequence with special HTML comments cannot be filtered and sanitized. This allows to by-pass the cross-site scripting mechanism of typo3/html-sanitizer.
Solution
Update to typo3/html-sanitizer versions 1.0.7 or 2.0.16 that fix the problem described.
Credits
Thanks to David Klein who reported this issue, and to TYPO3 security team member Oliver Hader who fixed the issue.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality low, integrity low, availability none.
Weakness class
CVE-2022-36020 is classified as CWE-79: Cross-site Scripting (XSS). User-supplied data is written into a page without escaping, so attacker script runs in the browser of anyone who views it.
Affected software
CVE-2022-36020 is recorded against 4 packages.
- html-sanitizer (from 2.0.0 up to 2.0.16)
- typo3/cms (from 11.0.0 up to 11.5.16)
- typo3/cms-core (from 11.0.0 up to 11.5.16)
- typo3/html-sanitizer (from 2.0.0 up to 2.0.16)
Timeline and source
Published on 13 September 2022 and last revised on 17 June 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.
References
github.com
github.com
packagist.org
packagist.org
github.com
github.com
packagist.org
packagist.org
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| html-sanitizer | 2.0.0 | 2.0.16 |
| typo3/cms | 11.0.0 | 11.5.16 |
| typo3/cms-core | 11.0.0 | 11.5.16 |
| typo3/html-sanitizer | 2.0.0 | 2.0.16 |
References
Similar Threats
- High CVE-2024-34078
- Medium CVE-2023-47125
- Medium CVE-2023-38500
- Medium CVE-2022-23499
More CVE 2022 advisories
Browse all of CVE 2022 in the advisory index.
Vulnerability Monitoring
Track new vulnerabilities in html-sanitizer
CVE-2022-36020 is rated CVSS 6.1 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.
Set Up Free Alerts →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.