Skip to main content

Symfony HtmlSanitizer EUVDEUVD-2026-117624

| CVE-2026-121949 LOW
Incomplete List of Disallowed Inputs (CWE-184)
2026-11-05 Checkmarx GHSA-q8jq-xrf4-v5j8
2.3
CVSS 4.0 · Vendor: Checkmarx
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit HTML with crafted srcset/imagesrcset
  2. Delivery
    Sanitizer preserves unvalidated media URL
  3. Exploit
    Victim views sanitized content
  4. Execution
    Browser fetches image from attacker host
  5. Impact
    Attacker logs viewer IP and user-agent

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
Exploitation Conditions

Exploitation requires a specific, non-default alignment of application behavior: (1) the application must sanitize attacker-controlled HTML with Symfony HtmlSanitizer; (2) its configuration must allow the srcset attribute on img/source or the imagesrcset attribute on link[rel=preload] elements - reachable via allowSafeElements(), allowStaticElements(), or an explicit allowElement() opt-in; and (3) the application must rely on allowMediaHosts(), allowMediaSchemes(), or forceHttpsUrls() to restrict where media may load from. Limiting factors that reduce real-world risk: a viewer must actually render the sanitized content for the browser request to fire (passive user interaction); applications that do not expose these attributes or do not depend on the media allow-lists are unaffected; and the impact ceiling is viewer tracking / IP and user-agent disclosure, with no code execution, no JavaScript execution, and no integrity/availability impact to the hosting application. No authentication is needed only if the application accepts HTML from unauthenticated users (the CVSS vector lists PR:N).

Impact

All signals point to a genuinely low-priority issue rather than a high-CVSS/low-real-risk mismatch. The vendor-assigned CVSS 4.0 base score is 2.3 (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): network-reachable and low attack complexity, but it carries an attack requirement (AT:P) and passive user interaction (UI:P), and the vulnerable system itself suffers no confidentiality/integrity/availability impact - only the subsequent system (the viewer's browser) sees a low confidentiality/integrity effect. The vuln.today decision label is 'monitor', which is consistent with that low score; it is not act_now or emergency. This CVE is NOT in CISA KEV and no EPSS score is provided in the input, so there is no quantitative exploitation-probability or active-exploitation signal to weigh. No POC is marked as confirmed in the input, though the GitHub Security Advisory includes a short reproduction snippet demonstrating the bypass primitive. There is no SSVC exploitation/automatable/technical-impact breakdown supplied beyond the 'monitor' label. The confirmed primitive is a browser-active URL policy bypass (images loaded from disallowed hosts/schemes), explicitly NOT JavaScript execution, so the realistic worst case is viewer tracking / IP-address and user-agent logging, not compromise. Bottom line: real but minor; patch on a normal maintenance cadence.

Exploit ScenarioDerived

An attacker submits HTML (e.g. a forum post, comment, or message) containing <img srcset="https://evil.example/a.png 1x"> to an application that sanitizes untrusted HTML with Symfony HtmlSanitizer and relies on allowMediaHosts()/allowMediaSchemes() to confine where images load from. The sanitizer keeps the srcset value verbatim because no URL sanitizer is registered for it, so when any user later views the content, their browser fetches the selected candidate from the attacker-controlled host, leaking the viewer's IP address and user-agent for tracking. The GitHub advisory publishes a trivial reproduction snippet; no weaponized exploit tooling is identified in the available sources.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 05, 2026

The Symfony HtmlSanitizer component fails to validate the srcset and imagesrcset attributes, so responsive-image URL candidates survive sanitization even when they point to hosts or schemes excluded by allowMediaHosts(), allowMediaSchemes() or forceHttpsUrls(). Applications running Symfony 6.1.x before 6.4.50, 7.x before 7.4.23, or 8.x before 8.1.11 that sanitize untrusted HTML and depend on the media allow-lists are affected; the same URL supplied in an img src attribute is correctly removed, which makes the bypass observable. The consequence is limited to a browser-active policy bypass: a viewer rendering the sanitized markup issues a request to an attacker-controlled host, enabling viewer tracking and IP address logging, with no JavaScript execution and no impact on application confidentiality, integrity or availability - it is rated low severity and no public exploit code has been confirmed.

RemediationAI

Vendor-released fixes are available: upgrade to Symfony 6.4.50, 7.4.23 or 8.1.11 (the html-sanitizer package follows the same branch versions), applying the upstream commit 9da387d0ddbf506eebd5d9e928bfd4f8f455d8b9 or the reference commit 50e7a38a8f088601c09669b9d267c9c0228884e1, and additionally apply the companion patch for CVE-2026-118517 (commit f2f47d2eef6c2552c6c5c24953caa94f7901cb43), without which a candidate lacking a double slash such as http:evil.example/a.png is still not checked against the media host allow-list. If an immediate upgrade is not possible, remove srcset from img/source and imagesrcset from link element attribute allow-lists in the sanitizer configuration so the unvalidated values are dropped rather than preserved, at the cost of losing responsive-image support in the sanitized output, and do not rely on the media allow-lists alone for those attributes; applications that never enable these attributes or that do not depend on the media scheme/host allow-lists are unaffected. Details are in the vendor advisory at https://github.com/symfony/symfony/security/advisories/GHSA-q8jq-xrf4-v5j8.

Affected VersionsENISA

symfony 8.0.0 <8.1.11
symfony 7.0.0 <7.4.23
symfony 6.1.0 <6.4.50

Affected Packages

euvd symfony fix: 6.4.50, 7.4.23, 8.1.11

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is an incomplete list of covered cases (CWE-184, with the advisory also classifying it as CWE-1023), located in the URL attribute sanitizer of the Symfony HtmlSanitizer component. W3CReference::ATTRIBUTES marks srcset and imagesrcset as allowed attributes, but UrlAttributeSanitizer::getSupportedAttributes() never registers them, and the DOM visitor preserves any attribute value verbatim when no sanitizer handles it. Consequently the media policy is applied to img[src], source[src] and link[href] but not to the comma-separated candidate lists used by img[srcset], source[srcset] and link[rel=preload][imagesrcset]. The official fix parses the value using the HTML srcset parsing rules - handling commas inside URLs and inside descriptor parentheses, normalizing descriptor whitespace, and treating an unterminated parenthesis as consuming the remainder of the value - then runs each candidate URL through UrlSanitizer::sanitize() against the media policy, drops rejected candidates, re-serializes surviving candidates with their width/density descriptors, and removes the attribute entirely if no candidate survives, matching how a rejected src is handled. The fix depends on the patch for CVE-2026-118517; without that companion fix, a candidate written without a double slash (for example http:evil.example/a.png) is not checked against the media host allow-list. The advisory explicitly notes that the confirmed primitive is a browser-active URL policy bypass, not JavaScript execution.

Know when Symfony gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Checkmarx) PRIMARY 2.3 LOW
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
vuln.today AI 4.7 MEDIUM

Config-dependent (srcset allowed plus reliance on media allow-lists) → AC:H; no privileges needed → PR:N; victim must view content → UI:R; cross-component browser request leaking viewer IP → S:C with only low confidentiality/integrity impact.

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (Checkmarx).

CVSS VectorVendor: Checkmarx

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

The Symfony HtmlSanitizer component does not apply the media URL policy to the srcset and imagesrcset attributes, allowing values that point to hosts or schemes not permitted by allowMediaSchemes() or allowMediaHosts() to bypass it, so that browsers load images from disallowed hosts in Symfony versions 6.1.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11.The srcset attribute on img and source elements and the imagesrcset attribute on link elements are allowed by the sanitizer, but their URL candidates are never validated, so their values are kept verbatim while the same URL in src is dropped. The fixes for CVE-2026-45753 and CVE-2026-48761 extended the same attribute list but did not cover these two attributes. For example, with allowMediaSchemes(['https']) and allowMediaHosts(['trusted.example']), <img srcset="https://evil.example/a.png 1x"> survives sanitization, and the browser fetches the selected candidate as it would fetch src. Candidates with a scheme forbidden by the configuration, such as http, are kept as well. Any application that sanitizes untrusted HTML and relies on the media schemes and hosts allowlists to restrict where images can be loaded from is affected. A single crafted value is enough to make the browser of a user viewing the sanitized content send a request to an attacker-controlled host, which can be used to track viewers or log their IP addresses. No authentication is needed if the application accepts HTML from unauthenticated users.

Threat Intelligence Overview

EPSS Score
0.2%
Top 85% exploitable
Prevalence
High
very widely deployed PHP web framework; HtmlSanitizer is an optional component
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
CVE-2015-4050 MEDIUM POC
4.3 Jun 02

FragmentListener in the HttpKernel component in Symfony 2.3.19 through 2.3.28, 2.4.9 through 2.4.10, 2.5.4 through 2.5.1

CVE-2019-10910 CRITICAL POC
9.8 May 16

In Symfony before 2.7.51, 2.8.x before 2.8.50, 3.x before 3.4.26, 4.x before 4.1.12, and 4.2.x before 4.2.7, when servic

CVE-2018-13818 CRITICAL POC
9.8 Jul 10

Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key parameter. Rated critical sever

CVE-2026-100872 HIGH POC
8.7 Sep 27

Insufficient verification of payment-claim state in the Sylius e-commerce platform (versions before 2.1.16 and 2.2.9) le

CVE-2026-100869 HIGH POC
8.2 Sep 27

Incorrect authorization in the Sylius Shop API lets anyone holding an order token submit arbitrary payment actions - mos

CVE-2025-64500 HIGH POC
7.3 Nov 12

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Rated high severity (C

CVE-2026-24739 MEDIUM POC
6.3 Jan 28

Symfony versions up to 5.4.51 contains a vulnerability that allows attackers to operations being performed on an uninten

CVE-2018-12040 MEDIUM POC
6.1 Jun 13

Reflected Cross-site scripting (XSS) vulnerability in the web profiler in SensioLabs Symfony 3.3.6 allows remote attacke

CVE-2016-2403 CRITICAL
9.8 Feb 07

Symfony before 2.8.6 and 3.x before 3.0.6 allows remote attackers to bypass authentication by logging in with an empty p

CVE-2024-51736 CRITICAL
9.8 Nov 06

Symphony process is a module for the Symphony PHP framework which executes commands in sub-processes. Rated critical sev

CVE-2019-18889 CRITICAL
9.8 Nov 21

An issue was discovered in Symfony 3.4.0 through 3.4.34, 4.2.0 through 4.2.11, and 4.3.0 through 4.3.7. Rated critical s

CVE-2019-11325 CRITICAL
9.8 Nov 21

An issue was discovered in Symfony before 4.2.12 and 4.3.x before 4.3.8. Rated critical severity (CVSS 9.8), this vulner

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy