Read the docs
TI-2026-32914 Aliases CVE-2026-45066GHSA-qc95-4862-92fh

Symfony: HtmlSanitizer allowLinkHosts() / allowMediaHosts() Bypass via URL-Parser…

Priority LOW 12CWE-184Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
None · None · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.

Summary

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 6.1.0-BETA1 until 6.4.40, 7.4.12, and 8.0.12, HtmlSanitizer URL sanitization can allow off-allowlist URLs through allowLinkHosts() or allowMediaHosts() because UrlSanitizer::parse() follows RFC 3986 while browsers follow WHATWG URL parsing, and because <area href> is checked against the media policy rather than the link policy. This issue is fixed in versions 6.4.40, 7.4.12, and 8.0.12.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00338 27th percentileScored 2026-11-07
Fix Fixed symfony (symfony): 6.4.40, 7.4.12, 8.0.12html-sanitizer (symfony): 6.4.40, 7.4.12, 8.0.12+2 more products

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
symfonysymfony6.1.0-BETA1 to before 6.4.40; 7.0.0-BETA1 to before 7.4.12; 8.0.0-BETA1 to before 8.0.126.4.40, 7.4.12, 8.0.12Patch availableCNA
symfonyhtml-sanitizer6.1.0-BETA1 to before 6.4.40; 7.0.0-BETA1 to before 7.4.12; 8.0.0-BETA1 to before 8.0.126.4.40, 7.4.12, 8.0.12Patch availableCNA
—symfony/html-sanitizer (Packagist)6.1.0 to before 6.4.406.4.40Patch availableGHSA-qc95-4862-92fh
—symfony/html-sanitizer (Packagist)7.0.0 to before 7.4.127.4.12Patch availableGHSA-qc95-4862-92fh
—symfony/html-sanitizer (Packagist)8.0.0 to before 8.0.128.0.12Patch availableGHSA-qc95-4862-92fh
—symfony/symfony (Packagist)6.1.0 to before 6.4.406.4.40Patch availableGHSA-qc95-4862-92fh
—symfony/symfony (Packagist)7.0.0 to before 7.4.127.4.12Patch availableGHSA-qc95-4862-92fh
—symfony/symfony (Packagist)8.0.0 to before 8.0.128.0.12Patch availableGHSA-qc95-4862-92fh
  • symfony Vendorsymfony Affected 6.1.0-BETA1 to before 6.4.40; 7.0.0-BETA1 to before 7.4.12; 8.0.0-BETA1 to before 8.0.12 Fixed in 6.4.40, 7.4.12, 8.0.12 Patch available CNA
  • html-sanitizer Vendorsymfony Affected 6.1.0-BETA1 to before 6.4.40; 7.0.0-BETA1 to before 7.4.12; 8.0.0-BETA1 to before 8.0.12 Fixed in 6.4.40, 7.4.12, 8.0.12 Patch available CNA
  • symfony/html-sanitizer (Packagist) Vendor— Affected 6.1.0 to before 6.4.40 Fixed in 6.4.40 Patch available GHSA-qc95-4862-92fh
  • symfony/html-sanitizer (Packagist) Vendor— Affected 7.0.0 to before 7.4.12 Fixed in 7.4.12 Patch available GHSA-qc95-4862-92fh
  • symfony/html-sanitizer (Packagist) Vendor— Affected 8.0.0 to before 8.0.12 Fixed in 8.0.12 Patch available GHSA-qc95-4862-92fh
  • symfony/symfony (Packagist) Vendor— Affected 6.1.0 to before 6.4.40 Fixed in 6.4.40 Patch available GHSA-qc95-4862-92fh
  • symfony/symfony (Packagist) Vendor— Affected 7.0.0 to before 7.4.12 Fixed in 7.4.12 Patch available GHSA-qc95-4862-92fh
  • symfony/symfony (Packagist) Vendor— Affected 8.0.0 to before 8.0.12 Fixed in 8.0.12 Patch available GHSA-qc95-4862-92fh

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*6.1.0 to before 6.4.40; 7.0.0 to before 7.4.12; 8.0.0 to before 8.0.12Vulnerablesensiolabs
  • cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:* Versions 6.1.0 to before 6.4.40; 7.0.0 to before 7.4.12; 8.0.0 to before 8.0.12 Vulnerable ·sensiolabs

Remediation

  • Fix · CNA symfony (symfony) Fixed in 6.4.40, 7.4.12, 8.0.12
  • Fix · CNA html-sanitizer (symfony) Fixed in 6.4.40, 7.4.12, 8.0.12
  • Fix · GHSA-qc95-4862-92fh symfony/html-sanitizer (Packagist) Fixed in 6.4.40 Advisory →
  • Fix · GHSA-qc95-4862-92fh symfony/html-sanitizer (Packagist) Fixed in 7.4.12 Advisory →
  • Fix · GHSA-qc95-4862-92fh symfony/html-sanitizer (Packagist) Fixed in 8.0.12 Advisory →
  • Fix · GHSA-qc95-4862-92fh symfony/symfony (Packagist) Fixed in 6.4.40 Advisory →
  • Fix · GHSA-qc95-4862-92fh symfony/symfony (Packagist) Fixed in 7.4.12 Advisory →
  • Fix · GHSA-qc95-4862-92fh symfony/symfony (Packagist) Fixed in 8.0.12 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-45066
  2. 2026-10-03 Alias added: GHSA-qc95-4862-92fh

References

  • TI-2024-33775 Ability to change environment from query in symfony/runtime CVSS 3.1HIGH 7.3
  • TI-2026-34283 Twig: The `spaceless` filter implicitly marks its output as safe CVSS 4.0MEDIUM 5.1
  • TI-2022-07667 Code injection in Twig CVSS 3.1CRITICAL 9.8
  • TI-2018-10028 Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key… CVSS 3.0CRITICAL 9.8
  • TI-2026-35851 Incorrect authorization in symfony CVSS 4.0HIGH 8.7
  • TI-2026-35264 Improper input validation in symfony CVSS 4.0HIGH 8.3
See all 94 →

Sources