CVE-2026-118517
Last modified
CVE-2026-118517 is a medium-severity vulnerability rated 4.3/10 on the CVSS scale. 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).
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| sensiolabs | symfony | >= 6.1.0, < 6.4.50; >= 7.0.0, < 7.4.23; >= 8.0.0, < 8.1.11 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-118517?
How severe is CVE-2026-118517?
How do I fix CVE-2026-118517?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-118504The web interface blocks issue and pull request changes on a…
- CVE-2026-118505Improper Restriction of Excessive Authentication Attempts vu…6.3
- CVE-2026-11851Improper Neutralization of Special Elements used in an SQL C…5.9
- CVE-2026-118510A type-handling flaw in the relationship query building of t…8.8
- CVE-2026-118513Authentication bypass by spoofing in X509Authenticator and X…7.7
- CVE-2026-118516The Symfony Routing components CompiledUrlMatcher and UrlMat…6.3
- CVE-2026-11852Debusine is an integrated solution to build, distribute and …6.5
- CVE-2026-118523The EventPrime WordPress plugin before 4.3.6.1 does not kee…5.3
- CVE-2026-118527Use of predictable filenames in Ivanti Connect Secure before…4.3
- CVE-2026-11853Debusine is an integrated solution to build, distribute and …6.5
- CVE-2026-118537A vulnerability was found in a2ui up to 0.10.4. This vulnera…4.3
- CVE-2026-118538A vulnerability was determined in a2ui-project a2ui up to 0.…5.5
Are you affected by CVE-2026-118517?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
