CVE-2026-118517
Awaiting Analysis Awaiting Analysis - Queue

URL Parsing Bypass in Symfony HtmlSanitizer

Vulnerability report for CVE-2026-118517, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-05

Last updated on: 2026-11-05

Assigner: Checkmarx

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-05
Last Modified
2026-11-05
Generated
2026-11-13
AI Q&A
2026-11-06
EPSS Evaluated
2026-11-12
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
sensiolabs symfony 6.1.0
sensiolabs symfony 7.0.0
sensiolabs symfony 8.0.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-436 Product A handles inputs or steps differently than Product B, which causes A to perform incorrect actions based on its perception of B's state.
CWE-184 The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects the Symfony HtmlSanitizer component's UrlSanitizer, which parses URLs differently from browsers. It allows bypassing host allow-list checks for URLs without a well-formed authority, such as http:evil.example or ///evil.example. The sanitizer uses RFC 3986 parsing, which browsers do not follow, leading to potential security risks when combined with allowRelativeLinks(true) or allowRelativeMedias(true).

Detection Guidance

To detect this vulnerability, check if your Symfony application uses the HtmlSanitizer component with versions prior to 6.4.50, 7.4.23, or 8.1.11. Inspect URL parsing behavior for malformed URLs like http:evil.example or ///evil.example. Use commands to verify component versions and test URL handling in your sanitizer configuration.

Impact Analysis

An attacker could exploit this to bypass host restrictions and inject malicious URLs into sanitized output. This could lead to phishing attacks, data exfiltration, or other security breaches if user-controlled input is sanitized using the affected component.

Compliance Impact

This vulnerability could lead to unauthorized data access or exfiltration, violating GDPR's data protection principles or HIPAA's security requirements. Organizations using affected Symfony versions may fail compliance checks if sanitization is part of their security controls.

Mitigation Strategies

Immediately update Symfony to versions 6.4.50, 7.4.23, or 8.1.11 or later. Review and adjust URL sanitizer configurations to ensure strict validation of special schemes and authorities. Disable allowRelativeLinks(true) or allowRelativeMedias(true) if not required. Test the updated configuration with malformed URLs to confirm the fix.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-118517. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...