# CVE-2023-38500: By-passing Cross-Site Scripting Protection in HTML Sanitizer

- Severity: Medium 4.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/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
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 44% of CVEs (2026-12-01)
- Published: 2023-07-25T18:27:16.000Z
- Modified: 2026-09-10T03:49:54.331Z
- Also known as: GHSA-59jf-3q9v-rh6g
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

TYPO3 HTML Sanitizer is an HTML sanitizer, written in PHP, aiming to provide cross-site-scripting-safe markup based on explicitly allowed tags, attributes and values. Starting in version 1.0.0 and prior to versions 1.5.1 and 2.1.2, due to an encoding issue in the serialization layer, malicious markup nested in a `noscript` element was not encoded correctly. `noscript` is disabled in the default configuration, but might have been enabled in custom scenarios. This allows bypassing the cross-site scripting mechanism of TYPO3 HTML Sanitizer. Versions 1.5.1 and 2.1.2 fix the problem.

(As written by CVE List.)

## Affected

- TYPO3 html-sanitizer: >= 1.0.0, < 1.5.1; >= 2.0.0, < 2.1.2
- typo3/html-sanitizer (Packagist): from 1.0.0 before 1.5.1; from 2.0.0 before 2.1.2
- typo3 html_sanitizer: from 1.0.0 before 1.5.1; from 2.0.0 before 2.1.2

## Every score

- GitHub_M: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/TYPO3/html-sanitizer/security/advisories/GHSA-59jf-3q9v-rh6g> (vendor-advisory, web)
- <https://github.com/TYPO3/html-sanitizer/commit/e3026f589fef0be8c3574ee3f0a0bfbe33d7ebdb> (patch, web)
- <https://typo3.org/security/advisory/typo3-core-sa-2023-002> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-38500> (advisory)
- <https://github.com/TYPO3/html-sanitizer> (package)

## Sources

- CVE List: [CVE-2023-38500](https://www.cve.org/CVERecord?id=CVE-2023-38500), CVE Terms of Use, modified 2024-10-10
- GitHub Advisory Database: [GHSA-59jf-3q9v-rh6g](https://github.com/advisories/GHSA-59jf-3q9v-rh6g), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-38500](https://nvd.nist.gov/vuln/detail/CVE-2023-38500), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-38500 · Whole record: https://cve.day/CVE-2023-38500.json · Rebuilt by cve.day 2026-11-25T22:58:26.501Z
