# CVE-2022-23499: Cross-Site Scripting Protection bypass in HTML Sanitizer

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.1
- **CVSS:** 6.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.55% (percentile 39, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-hvwx-qh2h-xcfj
- **Published:** 2022-12-13T16:59:12.000Z
- **Modified:** 2026-06-17T04:30:14.683Z

## Who should check

- Projects that depend on Packagist package typo3/html-sanitizer (\>= 1.0.0, \< 1.5.0)
- Projects that depend on Packagist package typo3/cms (\>= 10.0.0, \< 10.4.33)
- Anyone running TYPO3 html-sanitizer \>= 1.0.0, \< 1.5.0; \>= 2.0.0, \< 2.1.1

## Description

HTML sanitizer is written in PHP, aiming to provide XSS-safe markup based on explicitly allowed tags, attributes and values. In versions prior to 1.5.0 or 2.1.1,  malicious markup used in a sequence with special HTML CDATA sections cannot be filtered and sanitized due to a parsing issue in the upstream package masterminds/html5. This allows bypassing the cross-site scripting mechanism of typo3/html-sanitizer. The upstream package masterminds/html5 provides HTML raw text elements (\`script\`, \`style\`, \`noframes\`, \`noembed\` and \`iframe\`) as DOMText nodes, which were not processed and sanitized further. None of the mentioned elements were defined in the default builder configuration, that's why only custom behaviors, using one of those tag names, were vulnerable to cross-site scripting. This issue has been fixed in versions 1.5.0 and 2.1.1.

## Affected and fixed versions

- Packagist `typo3/html-sanitizer`: affected \>= 1.0.0, \< 1.5.0; fixed 1.5.0, 2.1.1 (osv)
- Packagist `typo3/cms`: affected \>= 10.0.0, \< 10.4.33; fixed 10.4.33, 11.5.20, 12.1.1 (osv)
- TYPO3 html-sanitizer: \>= 1.0.0, \< 1.5.0; \>= 2.0.0, \< 2.1.1 (cvelist)

## Mitigation

- Upgrade typo3/html-sanitizer to one of 1.5.0, 2.1.1 (or later in the same release line).
- Upgrade typo3/cms to one of 10.4.33, 11.5.20, 12.1.1 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-23499. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-23499.md
Affected: typo3/html-sanitizer >= 1.0.0, < 1.5.0; typo3/cms >= 10.0.0, < 10.4.33
Fixed in: 1.5.0, 2.1.1, 10.4.33, 11.5.20, 12.1.1

Steps:
1. Search this machine and project for typo3/html-sanitizer (Packagist), typo3/cms (Packagist), TYPO3 html-sanitizer: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-23499 being exploited?

There is no confirmed exploitation: CVE-2022-23499 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.55% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-23499?

Medium: CVSS 6.1 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2022-23499?

typo3/html-sanitizer \>= 1.0.0, \< 1.5.0; typo3/cms \>= 10.0.0, \< 10.4.33.

### Is there a fix for CVE-2022-23499?

Yes. Fixed in 1.5.0, 2.1.1, 10.4.33, 11.5.20, 12.1.1. Upgrade typo3/html-sanitizer to one of 1.5.0, 2.1.1 (or later in the same release line). Upgrade typo3/cms to one of 10.4.33, 11.5.20, 12.1.1 (or later in the same release line).

### How do I check if I'm affected by CVE-2022-23499?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/TYPO3/html-sanitizer/security/advisories/GHSA-hvwx-qh2h-xcfj>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-23499>
- patch: <https://github.com/TYPO3/html-sanitizer/pull/105>
- patch: <https://github.com/TYPO3/html-sanitizer/pull/106>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms/CVE-2022-23499.yaml>
- other: <https://github.com/TYPO3/html-sanitizer>
- other: <https://github.com/TYPO3/html-sanitizer/releases/tag/v1.5.0>
- other: <https://github.com/TYPO3/html-sanitizer/releases/tag/v2.1.1>
- other: <https://typo3.org/security/advisory/typo3-core-sa-2022-017>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-23499>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-hvwx-qh2h-xcfj> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-23499> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-23499>
