Skip to main content

Symfony HtmlSanitizer CVE-2026-118517

| EUVDEUVD-2026-117579 LOW
Incomplete List of Disallowed Inputs (CWE-184)
2026-11-05 Checkmarx
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 attacker-controlled content to sanitizer
  2. Delivery
    Craft URL with malformed authority (http:evil.example)
  3. Exploit
    Bypass allowLinkHosts/allowMediaHosts allow-list
  4. Execution
    Victim's browser resolves URL to attacker host
  5. Impact
    Navigation or media load to untrusted host

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 non-default HtmlSanitizer configuration: a host allow-list (allowLinkHosts() or allowMediaHosts()) combined with allowRelativeLinks(true) or allowRelativeMedias(true); the default configuration is not affected. The attacker must be able to supply HTML content that the sanitizer processes, and the payload must use a URL with a non-well-formed authority - the zero-slash scheme form (http:evil.example), three-or-more-slash scheme-relative forms (///evil.example), an empty-authority form (https://://evil.example/), or the host 0 (treated as falsy by PHP but resolved to 0.0.0.0 by browsers). Limiting factors: the vulnerable opt-in configuration, and for links a victim must follow the sanitized link (UI:P) - media URLs load without interaction. On HTTPS pages the attacker must use the http: scheme for the browser to treat the string as an absolute navigation.

Impact

Signals align on a genuinely low-priority issue. The vendor CVSS 4.0 base score is 2.3, and its vector (AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N) encodes the two facts that cap real-world risk: AT:P reflects that exploitation requires a specific non-default configuration, and UI:P reflects that a victim must passively act on (e.g. follow) the sanitized link. The only impact is low integrity (VI:L) - an untrusted host reference surviving sanitization - with no confidentiality or availability impact. No EPSS score and no KEV listing were provided in the input, so there is no probabilistic or confirmed-exploitation signal to weigh; this is consistent with the vuln.today Decision label of 'monitor' rather than act_now/emergency. A proof-of-concept is embedded in the Symfony GHSA advisory (demonstrating http:evil.example/login bypassing a trusted.example allow-list), so this is not a purely theoretical finding, but the input does not mark it as confirmed working weaponized exploit code and there is no evidence of active exploitation. The net picture is a real but narrow logic bug (RFC 3986 vs WHATWG URL parsing disagreement) gated behind an opt-in configuration - a legitimately low-severity issue, not a high-CVSS-but-low-risk mismatch. Note the Tags list 'Authentication Bypass', which does not match the mechanism: this is a host allow-list/URL-filter bypass (CWE-184/CWE-436), not an authentication bypass.

Exploit ScenarioDerived

In an application whose HtmlSanitizer is configured with a host allow-list plus allowRelativeLinks(true) or allowRelativeMedias(true) (e.g. a CMS or comment system), an attacker submits content containing a link or media URL with a malformed authority such as http:evil.example/login, ///evil.example, https://://evil.example/, or host 0. The sanitizer parses it with league/uri (RFC 3986), finds no host, skips the allow-list check, and keeps the URL; a victim's browser (WHATWG) resolves it to the attacker's host. A PoC demonstrating the link bypass is published in the Symfony GHSA advisory; on an HTTPS page the attacker uses the http: scheme so the browser treats it as an absolute navigation.

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

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

Alert me

AnalysisAIv1 – Nov 05, 2026

A URL-parsing differential in Symfony's HtmlSanitizer component lets crafted links and media sources bypass the host allow-list, so sanitized output can reference attacker-chosen external hosts. Only non-default setups are exposed: a host allow-list (allowLinkHosts() or allowMediaHosts()) combined with allowRelativeLinks(true) or allowRelativeMedias(true); the default configuration is unaffected. The trigger is unauthenticated in the sense that no credentials are needed, but the attacker must control HTML fed into the sanitizer, and for links a victim must follow the resulting link (UI:P). Public proof-of-concept code illustrating the bypass appears in the upstream advisory; no confirmed active exploitation or KEV listing is associated with this issue, and the CVSS 4.0 score of 2.3 reflects the narrow opt-in prerequisites.

RemediationAI

Vendor-released patch: upgrade symfony/html-sanitizer and symfony/symfony to 6.4.50, 7.4.23 or 8.1.11 respectively (forward-ported to 8.2), per the advisory at https://github.com/symfony/symfony/security/advisories/GHSA-c76g-9c4c-gxrw and the fix commit https://github.com/symfony/symfony/commit/f2f47d2eef6c2552c6c5c24953caa94f7901cb43. If upgrading cannot be scheduled immediately, the effective interim control is to stop combining a host allow-list with relative URLs: set allowRelativeLinks(false) and allowRelativeMedias(false), which removes every variant of the bypass according to the vendor, at the cost of dropping legitimate relative link and media URLs from sanitized output. Note the behavior change in the fixed releases: a bare 'https://' and any URL with an empty authority are now dropped where they previously round-tripped under allowRelativeLinks(true), and URLs with host '0' are now checked against the allow-list, so re-test content pipelines after upgrading.

Affected VersionsENISA

symfony 7.0.0 <7.4.23
symfony 8.0.0 <8.1.11
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

UrlSanitizer normalizes candidate URLs with league/uri, which implements RFC 3986, while browsers implement the WHATWG URL standard; the two disagree on strings lacking a well-formed authority. Under RFC 3986, 'http:evil.example' yields scheme http, a null host and path 'evil.example', so the allow-list check is skipped, and with allowRelativeLinks(true) the hostless-URL rejection is also waived, keeping the URL intact. WHATWG parsing treats '//' as optional when the scheme differs from the page scheme, so the browser navigates to http://evil.example/ (on an HTTPS page the http: scheme is the one that resolves as absolute). Three further variants exhibit the same disagreement: '///evil.example' (path for RFC 3986, authority for browsers), 'https://://evil.example/' (empty authority followed by path '//evil.example/' that browsers re-read as the authority), and the bare host '0', which PHP evaluates as falsy - the sanitizer treated it as a missing host while browsers resolve it to 0.0.0.0. The root cause class is CWE-184 (incomplete list of disallowed inputs, here an incomplete guard regex introduced for the earlier CVE-2026-45066), with CWE-436 (interpretation conflict) as the underlying parser-differential mechanism. The upstream fix requires the special schemes http, https, ftp, ws and wss to be followed by exactly '//', rejects scheme-relative URLs starting with three or more slashes, rejects parsed URLs whose authority is present but empty, and applies the allow-list to the host '0'.

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:L/VA:N/SC:N/SI:N/SA:N
vuln.today AI 3.1 LOW

AC:H because exploitation depends on a non-default allow-list-plus-relative-URL configuration; UI:R because a victim must follow the link; only low integrity impact (untrusted host reference), no confidentiality or availability.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/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
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

The Symfony HtmlSanitizer component UrlSanitizer parses URLs differently from browsers, allowing the allowLinkHosts() and allowMediaHosts() checks to be bypassed for URLs without a well-formed authority, resulting in untrusted hosts being referenced in sanitized output 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.

UrlSanitizer parses URLs with league/uri, which follows RFC 3986, while browsers follow the WHATWG URL standard. For URLs without a well-formed authority, such as http:evil.example, ///evil.example, or https://://evil.example/ the sanitizer finds no host, whereas browsers resolve them to evil.example. The guard added for CVE-2026-45066 missed the zero-slash form, and the host 0 was also skipped because PHP treats it as falsy.

This is exploitable when a host allow-list is combined with allowRelativeLinks(true) or allowRelativeMedias(true). The default configuration is not affected.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Prevalence
High
Symfony is a widely deployed enterprise PHP framework; HtmlSanitizer common in CMS apps
Data Quality
6 sources
Confidence: High

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.3%
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
Poc
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