symfony/html-sanitizer: is it safe?

Short answer: Version 8.1.11 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 symfony/html-sanitizer has 8 known advisories in the phpwarden feed. Feed 2026.11.23.2, updated 2026-11-23.

8advisories
0critical
0on CISA KEV
0no fix recorded
CVETitleSeverityCVSSAffectedFixed in
CVE-2026-121373HtmlSanitizer MetaRefreshAttributeSanitizer Matches Only a Narrow Subset of the Browser Refresh Grammar: Incomplete Fix for CVE-2026-48761unknown0.0>=6.1.0 and <6.2.0 or >=6.2.0 and <6.3.0 or >=6.3.0 and <6.4.0 or >=6.4.0 and <6.4.50 or >=7.0.0 and <7.1.0 or >=7.1.0 and <7.2.0 or >=7.2.0 and <7.3.0 or >=7.3.0 and <7.4.0 or >=7.4.0 and <7.4.23 or >=8.0.0 and <8.1.0 or >=8.1.0 and <8.1.116.4.50, 7.4.23, 8.1.11
CVE-2026-45064Symfony's HtmlSanitizer URL Attributes Pass Through BiDi Override Characters → Visual href Spoofingmedium0.0>=6.1.0 and <6.4.40 or >=7.0.0 and <7.4.12 or >=8.0.0 and <8.0.12 or >=6.1.0 and <6.2.0 or >=6.2.0 and <6.3.0 or >=6.3.0 and <6.4.0 or >=6.4.0 and <6.4.40 or >=7.0.0 and <7.1.0 or >=7.1.0 and <7.2.0 or >=7.2.0 and <7.3.0 or >=7.3.0 and <7.4.0 or >=7.4.0 and <7.4.126.4.40, 7.4.12, 8.0.12
CVE-2026-45066Symfony has an HtmlSanitizer allowLinkHosts() / allowMediaHosts() Bypass via URL-Parser Differentials and <area> Misclassificationmedium0.0>=6.1.0 and <6.4.40 or >=7.0.0 and <7.4.12 or >=8.0.0 and <8.0.12 or >=6.1.0 and <6.2.0 or >=6.2.0 and <6.3.0 or >=6.3.0 and <6.4.0 or >=6.4.0 and <6.4.40 or >=7.0.0 and <7.1.0 or >=7.1.0 and <7.2.0 or >=7.2.0 and <7.3.0 or >=7.3.0 and <7.4.0 or >=7.4.0 and <7.4.126.4.40, 7.4.12, 8.0.12
CVE-2026-48760Symfony: HtmlSanitizer URL Parser Deny Gates Underinclusive: Percent-Encoded BiDi Marks and Unicode Whitespace Bypass Visual-Spoofing Defensmedium0.0>=6.1.0 and <6.4.41 or >=7.0.0 and <7.4.13 or >=8.0.0 and <8.0.13 or >=6.1.0 and <6.2.0 or >=6.2.0 and <6.3.0 or >=6.3.0 and <6.4.0 or >=6.4.0 and <6.4.41 or >=7.0.0 and <7.1.0 or >=7.1.0 and <7.2.0 or >=7.2.0 and <7.3.0 or >=7.3.0 and <7.4.0 or >=7.4.0 and <7.4.136.4.41, 7.4.13, 8.0.13
CVE-2026-48761Symfony: HtmlSanitizer UrlAttributeSanitizer Misses URL Attributesmedium0.0>=6.1.0 and <6.4.41 or >=7.0.0 and <7.4.13 or >=8.0.0 and <8.0.13 or >=6.1.0 and <6.2.0 or >=6.2.0 and <6.3.0 or >=6.3.0 and <6.4.0 or >=6.4.0 and <6.4.41 or >=7.0.0 and <7.1.0 or >=7.1.0 and <7.2.0 or >=7.2.0 and <7.3.0 or >=7.3.0 and <7.4.0 or >=7.4.0 and <7.4.136.4.41, 7.4.13, 8.0.13
CVE-2026-118517CVE-2026-118517: HtmlSanitizer allowLinkHosts() / allowMediaHosts() Bypass via URLs Without a Well-Formed Authority: Incomplete Fix for CVE-unknown0.0>=6.1.0 and <6.2.0 or >=6.2.0 and <6.3.0 or >=6.3.0 and <6.4.0 or >=6.4.0 and <6.4.50 or >=7.0.0 and <7.1.0 or >=7.1.0 and <7.2.0 or >=7.2.0 and <7.3.0 or >=7.3.0 and <7.4.0 or >=7.4.0 and <7.4.23 or >=8.0.0 and <8.1.0 or >=8.1.0 and <8.1.116.4.50, 7.4.23, 8.1.11
CVE-2026-45753Symfony's HtmlSanitizer UrlAttributeSanitizer Omits action/formaction/poster/cite — `javascript`: URI Survives Sanitization (XSS)low0.0>=6.1.0 and <6.4.40 or >=7.0.0 and <7.4.12 or >=8.0.0 and <8.0.12 or >=6.1.0 and <6.2.0 or >=6.2.0 and <6.3.0 or >=6.3.0 and <6.4.0 or >=6.4.0 and <6.4.40 or >=7.0.0 and <7.1.0 or >=7.1.0 and <7.2.0 or >=7.2.0 and <7.3.0 or >=7.3.0 and <7.4.0 or >=7.4.0 and <7.4.126.4.40, 7.4.12, 8.0.12
CVE-2026-121949HtmlSanitizer Does Not URL-Sanitize srcset and imagesrcset: Media Scheme and Host Allow-List Bypassunknown0.0>=6.1.0 and <6.2.0 or >=6.2.0 and <6.3.0 or >=6.3.0 and <6.4.0 or >=6.4.0 and <6.4.50 or >=7.0.0 and <7.1.0 or >=7.1.0 and <7.2.0 or >=7.2.0 and <7.3.0 or >=7.3.0 and <7.4.0 or >=7.4.0 and <7.4.23 or >=8.0.0 and <8.1.0 or >=8.1.0 and <8.1.116.4.50, 7.4.23, 8.1.11

Quick answers

Is symfony/html-sanitizer safe to use?

Version 8.1.11 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 symfony/html-sanitizer being actively exploited?

None of its 8 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/symfony/html-sanitizer.svg)](https://phpwarden.io/packages/symfony/html-sanitizer)