← 漏洞与更新

低危漏洞公告PHPSymfony

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

受影响

软件包受影响版本修复版本
composer:symfony/html-sanitizer>= 6.1.0, < 6.4.506.4.50
composer:symfony/html-sanitizer>= 7.0.0, < 7.4.237.4.23
composer:symfony/html-sanitizer>= 8.0.0, < 8.1.118.1.11
composer:symfony/symfony>= 6.1.0, < 6.4.506.4.50
composer:symfony/symfony>= 7.0.0, < 7.4.237.4.23
显示全部 (6)
软件包受影响版本修复版本
composer:symfony/symfony>= 8.0.0, < 8.1.118.1.11

UrlSanitizer parses URLs with league/uri, which follows RFC 3986. For a special scheme written with no authority slashes, such as http:evil.example, RFC 3986 yields scheme http, host null and path evil.example. The sanitizer then skips the host allow-list check because the host is null, and with allowRelativeLinks(true) it also waives the rejection of hostless URLs, so the URL is kept. Browsers parse the same string per the WHATWG URL standard. There, // is optional when the scheme differs from…

在 GitHub Advisory Database 阅读

2026/12/02 06:31,GitHub Advisory Database 发布了“Symfony: HtmlSanitizer allowLinkHosts() / allowMediaHosts() Bypass via URLs Without a Well-Formed Authority: Incomplete Fix for CVE-2026-45066”(类型:漏洞公告)。严重程度为“低危”(low)。相关技术:PHP、Symfony。CVE:CVE-2026-118517、CVE-2026-45066。