CVE-2022-36020Typo3 Html Sanitizer
Medium 6.1 No auth needed
Follow: this CVE · Typo3 · Typo3 Html Sanitizer We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 59
- Auth required
- No
- Published
- Sep 13, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Html Sanitizer.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | typo3/cms |
≥ 10.0.0 < 10.4.32 |
10.4.32 |
composer require "typo3/cms:^10.4.32" |
| Packagist | typo3/cms |
≥ 11.0.0 < 11.5.16 |
11.5.16 |
composer require "typo3/cms:^11.5.16" |
| Packagist | typo3/cms-core |
≥ 10.0.0 < 10.4.32 |
10.4.32 |
composer require "typo3/cms-core:^10.4.32" |
| Packagist | typo3/cms-core |
≥ 11.0.0 < 11.5.16 |
11.5.16 |
composer require "typo3/cms-core:^11.5.16" |
| Packagist | typo3/html-sanitizer |
≥ 1.0.0 < 1.0.7 |
1.0.7 |
composer require "typo3/html-sanitizer:^1.0.7" |
| Packagist | typo3/html-sanitizer |
≥ 2.0.0 < 2.0.16 |
2.0.16 |
composer require "typo3/html-sanitizer:^2.0.16" |
Per OSV / GitHub Advisories (GHSA-47m6-46mj-p235). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| typo3 | html_sanitizer | ≥ 1.0.0 < 1.0.7 |
| typo3 | html_sanitizer | ≥ 2.0.0 < 2.0.16 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- packagist.org Third Party Advisory
- packagist.org Product Third Party Advisory