fast-uri vulnerable to host confusion via unchecked WHATWG host canonicalization (fast-uri fast-uri)
En bref
- Source
- NVD
- EPSS
- EPSS 0.26 % · centile 18 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- openjs
- Produits affectés
- fast-uri · fast-uri
- Statut NVD
- Awaiting Analysis
Rechercher sur…
Description
fast-uri is a dependency-free RFC 3986 URI parser and serializer for Node.js. In versions from 2.4.2 through 2.4.7, from 3.1.3 through 3.1.8, and from 4.0.1 through 4.2.2, for HTTP-family schemes the canonicalizeHost() function passes the parsed host to the WHATWG URL parser and adopts its hostname without checking that the parser consumed the entire input as a host, so the authority can be silently rewritten: data before an at-sign is dropped and tab, carriage-return, and line-feed characters are stripped, with no error reported. An application that enforces host-based policy such as denylists, loopback filtering, redirect validation, or outbound proxy routing on one representation can then see the canonical host diverge from what it checked, allowing traffic to be steered to an unintended destination. The issue is fixed in fast-uri 2.4.8, 3.1.9, and 4.2.3, and users should upgrade to one of these versions or later. As a workaround, reject an authority that contains more than one at-sign or any tab, carriage-return, or line-feed before calling fast-uri, or treat any non-empty parse error as fatal and compare hosts only from the same parse result.
Faiblesses (CWE)
Crédits
- UlisesGascon relecture du correctif
- mcollina relecture du correctif
- zekth signalement
Références
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N | openjs |
| CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N | NVD · ce714d77-add3-4f53-aff5-83d477b104bb (Secondary) |
Avis
- GHSA-wjr9-j795-jxcr — fast-uri vulnerable to host confusion via unchecked WHATWG host canonicalization
Références européennes
- ENISA EUVD · EUVD-2026-104813
- GCVE · GCVE-0-2026-110180
Avis du CERT-FR
- CERTFR-2026-AVI-1539 — Multiples vulnérabilités dans les produits IBM · cert.ssi.gouv.fr
Produits affectés
| Produit | Versions affectées |
|---|---|
| fast-uri · fast-uri | affectée : ≥ 2.4.2 < 2.4.8 non affectée : 2.4.8 affectée : ≥ 3.1.3 < 3.1.9 non affectée : 3.1.9 affectée : ≥ 4.0.1 < 4.2.3 non affectée : 4.2.3 Autres versions : non affectée |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |