CVE-2026-118517sensiolabs symfony
Low 2.3 No auth needed
Follow: this CVE · sensiolabs · sensiolabs symfony We alert you by email or Slack (account required).
- Priority
- 29
- CVSS 4.0
- 2.3
- EPSS
- —
- Auth required
- No
- Published
- Nov 5, 2026
- Updated
- Nov 6, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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.
What to do
- Apply the vendor's security update for symfony.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | symfony/html-sanitizer |
≥ 6.1.0 < 6.4.50 |
6.4.50 |
composer require "symfony/html-sanitizer:^6.4.50" |
| Packagist | symfony/html-sanitizer |
≥ 7.0.0 < 7.4.23 |
7.4.23 |
composer require "symfony/html-sanitizer:^7.4.23" |
| Packagist | symfony/html-sanitizer |
≥ 8.0.0 < 8.1.11 |
8.1.11 |
composer require "symfony/html-sanitizer:^8.1.11" |
| Packagist | symfony/symfony |
≥ 6.1.0 < 6.4.50 |
6.4.50 |
composer require "symfony/symfony:^6.4.50" |
| Packagist | symfony/symfony |
≥ 7.0.0 < 7.4.23 |
7.4.23 |
composer require "symfony/symfony:^7.4.23" |
| Packagist | symfony/symfony |
≥ 8.0.0 < 8.1.11 |
8.1.11 |
composer require "symfony/symfony:^8.1.11" |
Per OSV / GitHub Advisories (GHSA-c76g-9c4c-gxrw). Check the version in your lockfile before upgrading.
Affected products
- sensiolabs · symfony
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.