Quick answers
- Is CVE-2026-118517 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-118517 being exploited in the wild.
- How severe is CVE-2026-118517?
- Medium severity, with a CVSS score of 4.3, published 5 November 2026.
- Which products and versions are affected?
- Symfony HtmlSanitizer 6.1.x before 6.4.50, 7.x before 7.4.23, 8.x before 8.1.11.
- Is there a fix for CVE-2026-118517?
- Yes: fixed in Symfony 6.4.50, 7.4.23, 8.1.11. Until then: Do not combine allowLinkHosts() or allowMediaHosts() with allowRelativeLinks(true) or allowRelativeMedias(true) until upgrading; use the default configuration which is not affected. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-118517 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-118517?
- Check whether you run Symfony HtmlSanitizer at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- Fixed in: Symfony 6.4.50, 7.4.23, 8.1.11
Do not combine allowLinkHosts() or allowMediaHosts() with allowRelativeLinks(true) or allowRelativeMedias(true) until upgrading; use the default configuration which is not affected.
Technical details
The UrlSanitizer uses the league/uri library which parses URLs per RFC 3986, while browsers follow the WHATWG URL standard. For malformed URLs without a well-formed authority (e.g., "http:evil.example", "///evil.example", "https://://evil.example/"), the sanitizer fails to extract a host while browsers resolve them correctly, bypassing the allowlist when relative URLs are enabled. Additionally, the host "0" was treated as falsy by PHP and skipped during validation.
Affected products
- Symfony HtmlSanitizer 6.1.x before 6.4.50, 7.x before 7.4.23, 8.x before 8.1.11
Timeline
- 2026-11-05: disclosed