CVE-2022-36020

Bypass of Cross-Site Scripting Protection in typo3/html-sanitizer

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.

Category

6.1
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.10%
Third-Party Advisory github.com Third-Party Advisory github.com Third-Party Advisory packagist.org Third-Party Advisory packagist.org
Affected: TYPO3 html-sanitizer
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2022-36020?
CVE-2022-36020 has been scored as a medium severity vulnerability.
How to fix CVE-2022-36020?
To fix CVE-2022-36020, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2022-36020 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2022-36020 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2022-36020?
CVE-2022-36020 affects TYPO3 html-sanitizer.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.