Skip to main content
CVE-2026-121949VulnerabilityPublished

symfony/html-sanitizer · Symfony: HtmlSanitizer Does Not URL-Sanitize srcset and imagesrcset Leading to Media Scheme and Host Allow-List Bypass

Affects symfony/html-sanitizerSource GCVE Database

0
Compare

Mentioned vulnerabilities

Authoritative record:CVE-2026-121949· Low 2.3

Not known to be exploited · CVSS 2.3 Low : upgrade to 6.4.50 when convenient.

Data as of 1 Dec 2026, 23:01 UTC

CVSS 4.0 base score
2.3Low
How severe the flaw is on the 0–10 CVSS scale.

Contested

Scorers differ by 2 or more points
CVSS scores by source
CNA (Checkmarx)CVSS 4.02.3
CISA-ADPCVSS 3.15.4
Patch
Available – fixed in 6.4.50, 7.4.23, 8.1.11
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 5 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 1 Dec 2026.

What to do

Upgrade symfony/html-sanitizer and symfony/symfony to 6.4.50; symfony/html-sanitizer and symfony/symfony to 7.4.23; symfony/html-sanitizer and symfony/symfony to 8.1.11.

Affected software

ProductAffectedFixed in
Packagistsymfony/html-sanitizerAffected
  • >=6.1.0 <6.4.50
Fixed in
  • 6.4.50
Packagistsymfony/html-sanitizerAffected
  • >=7.0.0 <7.4.23
Fixed in
  • 7.4.23
Packagistsymfony/html-sanitizerAffected
  • >=8.0.0 <8.1.11
Fixed in
  • 8.1.11
Packagistsymfony/symfonyAffected
  • >=6.1.0 <6.4.50
Fixed in
  • 6.4.50
Packagistsymfony/symfonyAffected
  • >=7.0.0 <7.4.23
Fixed in
  • 7.4.23
Packagistsymfony/symfonyAffected
  • >=8.0.0 <8.1.11
Fixed in
  • 8.1.11

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available and should be applied. Symfony fixed this issue in versions 6.4.50, 7.4.23, and 8.1.11 by adding proper sanitization for 'srcset' and 'imagesrcset' attributes. The fix requires also applying the patch for CVE-2026-118517 to ensure correct URL host allow-list enforcement. Until patched, applications should avoid allowing these attributes in sanitizer configurations that rely on media host or scheme restrictions. No other mitigation is indicated by the vendor advisory.

Description

Symfony's HtmlSanitizer component did not sanitize the 'srcset' and 'imagesrcset' attributes, allowing attacker-controlled responsive-image URL lists to bypass media scheme and host allow-lists. This issue arises because these attributes were allowed but lacked a registered URL sanitizer, causing their values to be preserved verbatim. The vulnerability affects configurations that rely on allowMediaHosts or allowMediaSchemes to restrict media URLs. The issue is fixed in versions 6.4.50, 7.4.23, and 8.1.11 by properly parsing and sanitizing each URL candidate in these attributes. The severity is rated medium with a CVSS score of 5.4.

References

Community reviews

Loading reviews…