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

CVE-2026-126209

Loofah allowed_uri? treats javascript&#x3a alert(1) as safe

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

Faible 34/100

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))
flavorjones
ProduitVersionsCorrigé dansSource
loofah Versions non précisées — CNA (éditeur ou attributeur)
Rubygems (1 ligne(s))
Rubygems
ProduitVersionsCorrigé dansSource
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

  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)
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)

Comment sont obtenues et calculées ces données