nday
CVE-2026-126209 GHSA-p9wj-w8xq-vjx6

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

flavorjones / loofah

Hay constancia de un parche el mismo día de la divulgación. Versión corregida: loofah 2.25.3. Ninguna de las cuatro fuentes de PoC la recoge. No figura en el KEV de CISA.

tags weakness typeXSS accessnetworkno authentication required ecosystemRubyGems
why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

XSS
CWE-79, stated by the CNA GitHub_M, NVD, republishing [email protected] y GitHub advisory GHSA-p9wj-w8xq-vjx6
network
AV:N in 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) from the CNA GitHub_M
no authentication required
PR:N in 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) from the CNA GitHub_M
RubyGems
GHSA-p9wj-w8xq-vjx6: rubygems packages loofah
etapa
PAT
divulgación
divulgación → parche
T+0d
cvss
5.3 MEDIUM v4.0

Ciclo de vida

Eje x en UTC; punto = minuto exacto, barra ancha = solo fecha, hueco = desconocida o inferida.
fecha desconocida
DISdivulgada
11-12T21:01Z
PATparcheada
11-12T22:05Z
ANAanalizada
sin registro aún
POCPoC
sin registro aún
ITWexplotada
sin registro aún
KEVen KEV
sin registro aún

Descripción

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.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:L
Low: no target-specific security measures to get around
Attack requirements AT:N
None: success does not depend on how the target is deployed or running
Privileges required PR:N
None: no account or authorization needed
User interaction UI:P
Passive: limited, involuntary interaction, such as visiting a page

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 vector from the CVE record, scored by the CNA GitHub_M.

Registro de eventos

+DISdivulgación

GitHub_M publicó el registro CVE. CVSS 5.3, severidad media.

fuente cvelist · nday , observado en tiempo real · en bruto
{
  "id": 65357,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-126209",
  "occurred_at": "2026-11-12T21:01:58.128Z",
  "observed_at": "2026-11-12T22:03:30.423345Z",
  "is_backfill": false,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "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",
      "version": "4.0",
      "base_score": 5.3,
      "base_severity": "MEDIUM"
    },
    "ssvc": {
      "timestamp": "2026-11-16T19:30:35.650536Z",
      "automatable": "no",
      "exploitation": "none",
      "technical_impact": "partial"
    },
    "state": "PUBLISHED",
    "date_published": "2026-11-12T21:01:58.128Z",
    "assigner_short_name": "GitHub_M"
  }
}
hora observada en tiempo real por nday
+PATparche registrado

Versión corregida según el aviso: loofah 2.25.3. El aviso enlaza los commits de la corrección. Aviso publicado el ; no consta cuándo se publicó el parche en sí.

fuente ghsa GHSA-p9wj-w8xq-vjx6 · nday , observado en tiempo real · en bruto
{
  "id": 65668,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-p9wj-w8xq-vjx6",
  "occurred_at": null,
  "observed_at": "2026-11-12T22:05:01.152532Z",
  "is_backfill": false,
  "dedupe_key": "GHSA-p9wj-w8xq-vjx6",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 0.0,
        "vector_string": null
      },
      "cvss_v4": {
        "score": 5.3,
        "vector_string": "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"
      }
    },
    "cwes": [
      {
        "name": "Improper Neutralization of Input During Web Page Generation",
        "cwe_id": "CWE-79"
      },
      {
        "name": "Incomplete List of Disallowed Inputs",
        "cwe_id": "CWE-184"
      }
    ],
    "ghsa_id": "GHSA-p9wj-w8xq-vjx6",
    "packages": [
      {
        "name": "loofah",
        "ecosystem": "rubygems",
        "first_patched_version": "2.25.3",
        "vulnerable_version_range": ">= 2.25.0, < 2.25.3"
      }
    ],
    "severity": "medium",
    "references": [
      "https://github.com/flavorjones/loofah/security/advisories/GHSA-p9wj-w8xq-vjx6",
      "https://github.com/flavorjones/loofah/pull/324",
      "https://github.com/flavorjones/loofah/commit/62c04841e8252a1b5373afcd2b89fb9b8279e317",
      "https://github.com/flavorjones/loofah/releases/tag/v2.25.3",
      "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/GHSA-p9wj-w8xq-vjx6.yml",
      "https://github.com/advisories/GHSA-p9wj-w8xq-vjx6"
    ],
    "fix_commit_urls": [
      "https://github.com/flavorjones/loofah/pull/324",
      "https://github.com/flavorjones/loofah/commit/62c04841e8252a1b5373afcd2b89fb9b8279e317"
    ],
    "github_reviewed_at": "2026-11-12T21:26:25Z",
    "advisory_updated_at": "2026-11-12T21:27:46Z",
    "source_code_location": "https://github.com/flavorjones/loofah",
    "advisory_published_at": "2026-11-12T21:26:25Z"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Debate de investigadores

0 investigadores lo mencionaron en los últimos 7 días

Publicaciones en X de investigadores de la lista de nday que mencionan este CVE, tal como se publicaron. nday no las verifica.

nday aún no ha recopilado publicaciones en X de investigadores de su lista sobre este CVE.

Discussion

0 comments

No comments yet.