CVE-2026-126209
Description
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.
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation
- CWE-184: Incomplete List of Disallowed Inputs
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-11-16 |
Timeline
- 2026-11-12Published by the CNA21:01 UTC
- 2026-11-12GitHub advisory published (GHSA-p9wj-w8xq-vjx6)same day
- 2026-11-12Published in NVD21:17 UTC · 15 minutes after the CNA
- 2026-11-16CISA SSVC decision recorded4 days after publication
Exploit and advisory records
GitHub advisory GHSA-p9wj-w8xq-vjx6, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| RubyGems loofah | from 2.25.0 before 2.25.3 | 2.25.3 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| flavorjones loofah |
References
- https://github.com/flavorjones/loofah/commit/62c04841e8252a1b5373afcd2b89fb9b8279e317
- https://github.com/flavorjones/loofah/pull/324
- https://github.com/flavorjones/loofah/releases/tag/v2.25.3
- https://github.com/flavorjones/loofah/security/advisories/GHSA-p9wj-w8xq-vjx6
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-126209'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-126209'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-126209'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-126209'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).