Security mailing lists by PureSourceCode

CVE-2026-118517

LOW 2.3CVSS 4.0

Symfony: HtmlSanitizer allowLinkHosts() / allowMediaHosts() Bypass via URLs Without a Well-Formed Authority: Incomplete Fix for CVE-2026-45066

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.

Published
5 Nov 2026
Last modified
1 Dec 2026
Assigned by
596c5446-0ce5-4ba2-aa66-48b3b757a647
NVD status
Awaiting Analysis
Weakness
CWE-184CWE-436
Also known as
GHSA-c76g-9c4c-gxrw
Sources
NVDJSONOSV GHSA-c76g-9c4c-gxrwJSON

Scores

SourceScored byVersionScoreVector / decision
NVD 596c5446-0ce5-4ba2-aa66-48b3b757a647 (Secondary) CVSS 4.0 LOW 2.3 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
OSV GitHub CVSS 4.0 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
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 MEDIUM 4.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 4.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Packagist symfony/html-sanitizer >= 6.1.0, < 6.4.50 6.4.50
OSV Packagist symfony/html-sanitizer >= 7.0.0, < 7.4.23 7.4.23
OSV Packagist symfony/html-sanitizer >= 8.0.0, < 8.1.11 8.1.11
OSV Packagist symfony/symfony >= 6.1.0, < 6.4.50 6.4.50
OSV Packagist symfony/symfony >= 7.0.0, < 7.4.23 7.4.23
OSV Packagist symfony/symfony >= 8.0.0, < 8.1.11 8.1.11

References

History

  • 1 Dec 2026 22:45 UTC · OSV: first stored (published 1 Dec 2026)
  • 25 Nov 2026 21:23 UTC · NVD: first stored (published 5 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.