typo3/html-sanitizer: is it safe?

Short answer: Version 2.3.2 or later has a fix for every vulnerability listed here. Older versions may be affected: check the table against the exact version you run.

Composer typo3/html-sanitizer has 6 known advisories in the phpwarden feed. Feed 2026.11.23.2, updated 2026-11-23.

6advisories
0critical
0on CISA KEV
0no fix recorded
CVETitleSeverityCVSSAffectedFixed in
CVE-2022-36020TYPO3 HTML Sanitizer Bypasses Cross-Site Scripting Protectionmedium6.1>=1.0.0 and <1.0.7 or >=2.0.0 and <2.0.161.0.7, 2.0.16
CVE-2023-47125Bypassing Cross-Site Scripting Protection in TYPO3 HTML Sanitizermedium4.7>=1.0.0 and <1.5.3 or >=2.0.0 and <2.1.41.5.3, 2.1.4
CVE-2023-38500By-passing Cross-Site Scripting Protection in HTML Sanitizermedium4.7>=1.0.0 and <1.5.1 or >=2.0.0 and <2.1.21.5.1, 2.1.2
CVE-2022-23499TYPO3 HTML Sanitizer vulnerable to Cross-Site Scriptingmedium6.1>=1.0.0 and <1.5.0 or >=2.0.0 and <2.1.11.5.0, 2.1.1
CVE-2026-47345TYPO3 HTML Sanitizer allows Cross-site Scriptingmedium0.0<2.3.22.3.2
CVE-2026-47344TYPO3 HTML Sanitizer allows Cross-site Scriptinglow0.0<2.3.22.3.2

Quick answers

Is typo3/html-sanitizer safe to use?

Version 2.3.2 or later has a fix for every vulnerability listed here. Older versions may be affected: check the table against the exact version you run.

Is typo3/html-sanitizer being actively exploited?

None of its 6 known vulnerabilities are on CISA's Known Exploited Vulnerabilities list today.

How do I check my own site?

Run `phpwarden deps composer.lock`. phpwarden compares the exact version you have installed with these advisories and lists only the ones that apply, exploited ones first.

Am I affected?

Find out in one command. phpwarden checks your composer.lock against this advisory and 21,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden deps composer.lock

# or, without Composer
pipx install phpwarden   &&   phpwarden deps composer.lock

Or keep it checked automatically: GitHub Action · pre-commit hook · GitLab CI · Laravel artisan command

Install docs   How findings are ranked
A version is vulnerable when it falls inside an affected range and below the fixed version. phpwarden applies these ranges to the exact versions in your lockfile or install, so you only see what applies to you.

Add this status to your README

phpwarden status badge

Maintainer of this package? The badge updates itself whenever the feed is rebuilt (twice a day). Add ?v=1.2.3 to the image address to show the status of one exact version.

[![phpwarden](https://phpwarden.io/badge/typo3/html-sanitizer.svg)](https://phpwarden.io/packages/typo3/html-sanitizer)