1. Accueil
  2. Vulnérabilités
  3. CVE-2026-118517

CVE-2026-118517

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

Publiée le 5 nov. 2026 · modifiée le 6 nov. 2026 · Sources : NVD, CNA (éditeur ou attributeur), CERT-FR, EPSS (FIRST)

Faible 17/100

Résumé

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.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Packagist (6 ligne(s))
Packagist
ProduitVersionsCorrigé dansSource
symfony/html-sanitizer de 6.1.0 (inclus) à 6.4.50 (exclu) 6.4.50 GitHub Advisory
symfony/html-sanitizer de 7.0.0 (inclus) à 7.4.23 (exclu) 7.4.23 GitHub Advisory
symfony/html-sanitizer de 8.0.0 (inclus) à 8.1.11 (exclu) 8.1.11 GitHub Advisory
symfony/symfony de 6.1.0 (inclus) à 6.4.50 (exclu) 6.4.50 GitHub Advisory
symfony/symfony de 7.0.0 (inclus) à 7.4.23 (exclu) 7.4.23 GitHub Advisory
symfony/symfony de 8.0.0 (inclus) à 8.1.11 (exclu) 8.1.11 GitHub Advisory

Correctif

Mise à jour — Packagist/symfony/html-sanitizer 6.4.50; Packagist/symfony/html-sanitizer 7.4.23; Packagist/symfony/html-sanitizer 8.1.11; Packagist/symfony/symfony 6.4.50; Packagist/symfony/symfony 7.4.23; Packagist/symfony/symfony 8.1.11source officielle

Source : GitHub Advisory

Contournement

Aucun contournement renseigné.

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Avis CERT-FR

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
CNA (éditeur ou attributeur)
Faiblesse (CWE)
CNA (éditeur ou attributeur)
Vecteur CVSS
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 (CVSS 4.0, CNA:Checkmarx)
Faiblesse
CWE-184 · Autre (CWE-184)

Comment sont obtenues et calculées ces données