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, 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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | typo3/cms | >= 10.0.0, < 10.4.32, >= 11.0.0, < 11.5.16 | 10.4.32, 11.5.16 |
| Composer package | typo3/cms-core | >= 10.0.0, < 10.4.32, >= 11.0.0, < 11.5.16 | 10.4.32, 11.5.16 |
| Composer package | typo3/html-sanitizer | >= 1.0.0, < 1.0.7, >= 2.0.0, < 2.0.16 | 1.0.7, 2.0.16 |
References
- https://github.com/TYPO3/html-sanitizer/security/advisories/GHSA-47m6-46mj-p235
- https://nvd.nist.gov/vuln/detail/CVE-2022-36020
- https://github.com/TYPO3/html-sanitizer/commit/60bfdc7f9b394d0236e16ee4cea8372a7defa493
- https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms-core/CVE-2022-36020.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms/CVE-2022-36020.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/html-sanitizer/CVE-2022-36020.yaml
- https://github.com/TYPO3/html-sanitizer
- https://packagist.org/packages/masterminds/html5
- https://packagist.org/packages/typo3/html-sanitizer
- https://typo3.org/security/advisory/typo3-core-sa-2022-011
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N- Weakness (CWE)
CWE-79- Platform
- Composer
- Package
typo3/cms, typo3/cms-core, typo3/html-sanitizer- Disclosed
- 16.09.2022
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-47m6-46mj-p235 - CC BY 4.0
Vulnerability history: typo3/cms
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 188
- First → latest
- 09.2018 06.2024
- Without a fix
- 3
- Exploited in attacks
- 0
Severity breakdown
- Critical 6
- High 41
- Medium 128
- Low 13
Disclosures per year
- 2018: 2
- 2019: 0
- 2020: 13
- 2021: 15
- 2022: 85
- 2023: 1
- 2024: 72
- 2025: 0
- 2026: 0
-
TYPO3 HTML Sanitizer Bypasses Cross-Site Scripting Protection this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.