# GHSA-gqqf-g5r7-84vf: TYPO3 HTML Sanitizer Bypasses Cross-Site Scripting Protection

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-09-15T03:26:51.000Z
- Modified: 2024-12-06T05:37:17.196Z

## Description

> ### 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`](https://github.com/TYPO3/html-sanitizer).

### Solution
Update to TYPO3 version 7.6.58 ELTS, 8.7.48 ELTS, 9.5.37 ELTS, 10.4.32 or 11.5.16 that fix the problem described above.

### Credits
Thanks to David Klein who reported this issue, and to TYPO3 security team member Oliver Hader who fixed the issue.

### References
* [TYPO3-CORE-SA-2022-011](https://typo3.org/security/advisory/typo3-core-sa-2022-011)
* [GHSA-47m6-46mj-p235](https://github.com/TYPO3/html-sanitizer/security/advisories/GHSA-47m6-46mj-p235)

(As written by GitHub Advisory Database.)

## Affected

- typo3/cms-core (Packagist): from 7.0.0 before 7.6.58; from 8.0.0 before 8.7.48; from 9.0.0 before 9.5.37; from 10.0.0 before 10.4.32; from 11.0.0 before 11.5.16

## References

- <https://github.com/TYPO3/typo3/security/advisories/GHSA-gqqf-g5r7-84vf> (web)
- <https://github.com/TYPO3/typo3/commit/d4f260570abd934fcf3819370a135bef33d729b7> (web)
- <https://github.com/TYPO3/typo3> (package)

## Sources

- GitHub Advisory Database: [GHSA-gqqf-g5r7-84vf](https://github.com/advisories/GHSA-gqqf-g5r7-84vf), CC-BY-4.0, modified 2024-12-06

---

Page: https://cve.day/GHSA-gqqf-g5r7-84vf · Whole record: https://cve.day/GHSA-gqqf-g5r7-84vf.json · Rebuilt by cve.day 2026-11-25T22:56:32.210Z
