- Accueil
- Vulnérabilités
- CVE-2026-126209
CVE-2026-126209
Loofah allowed_uri? treats javascript: alert(1) as safe
Résumé
Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. From 2.25.0 until 2.25.3, Loofah::HTML5::Scrub.allowed_uri? strips whitespace and control characters before decoding a semicolon-less numeric character reference, changing where the reference ends and hiding a javascript: or vbscript: scheme that a browser reconstructs. The bypass applies to encoded colons and encoded scheme letters when a stripped character terminates the numeric reference. An application that renders the approved value in href or another browser-interpreted URI attribute can allow cross-site scripting, and Rails::HTML::Sanitizer.allowed_uri? re-exports the affected helper. Loofah's default sanitize() path is not affected because Nokogiri decodes entities before URI evaluation. This issue is fixed in version 2.25.3.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
flavorjones (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| loofah | Versions non précisées | — | CNA (éditeur ou attributeur) |
Rubygems (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| loofah | de 2.25.0 (inclus) à 2.25.3 (exclu) |
2.25.3 |
GitHub Advisory |
Correctif
Mise à jour — RubyGems/loofah 2.25.3source officielle
Source : GitHub Advisory
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Aucune méthode de vérification renseignée.
Chronologie
- — Publication de la CVE (cve)
Avis CERT-FR
- GHSA-p9wj-w8xq-vjx6 — Loofah allowed_uri? treats javascript: alert(1) as safe 12 nov. 2026
Références
- https://github.com/flavorjones/loofah/security/advisories/GHSA-p9wj-w8xq-vjx6x_refsource_CONFIRM
- https://github.com/flavorjones/loofah/pull/324x_refsource_MISC
- https://github.com/flavorjones/loofah/commit/62c04841e8252a1b5373afcd2b89fb9b8279e317x_refsource_MISC
- https://github.com/flavorjones/loofah/releases/tag/v2.25.3x_refsource_MISC
- https://github.com/flavorjones/loofahPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/GHSA-p9wj-w8xq-vjx6.ymlWEB
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- CNA (éditeur ou attributeur)
- Score CVSS
- CNA (éditeur ou attributeur)
- Faiblesse (CWE)
- NVD
- Vecteur CVSS
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N(CVSS 4.0, CNA:GitHub_M)- Faiblesse
- CWE-79 · Script intersite (XSS)