CVE-2026-126209 Loofah allowed_uri? treats javascript: alert(1) as safe
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
9 packages: 1 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/ruby-loofah(Debian 12) | = 2.19.1-1; = 2.20.0-1; = 2.21.3-1; = 2.21.4-1 +9 more | No fix listed | No fix yet |
| debian/ruby-loofah(Debian 13) | = 2.24.0-1; = 2.24.1-1; = 2.25.0-1; = 2.25.1-1 +4 more | No fix listed | No fix yet |
| debian/ruby-loofah(Debian 14) | = 2.24.0-1; = 2.24.1-1; = 2.25.0-1; = 2.25.1-1 +4 more | No fix listed | No fix yet |
| ubuntu/ruby-loofah(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/ruby-loofah(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/ruby-loofah(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/ruby-loofah(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| rubygems loofah(RubyGems) | = 2.25.0; = 2.25.1; = 2.25.2; >= 2.25.0, < 2.25.3 | 2.25.3 | Fixed |
| flavorjones loofah | = >= 2.25.0, < 2.25.3 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems loofah(RubyGems) | >= 2.25.0, < 2.25.3 | 2.25.3 |
| rubygems loofah(RubyGems) | = 2.25.0 | No fix listed |
| rubygems loofah(RubyGems) | = 2.25.1 | No fix listed |
| rubygems loofah(RubyGems) | = 2.25.2 | No fix listed |
| debian/ruby-loofah(Debian:12) | All versions | No fix listed |
| debian/ruby-loofah(Debian:14) | All versions | No fix listed |
| debian/ruby-loofah(Debian:13) | All versions | No fix listed |
| flavorjones loofah | = >= 2.25.0, < 2.25.3 | No fix listed |
| debian/ruby-loofah(Debian:12) | = 2.19.1-1 | No fix listed |
| debian/ruby-loofah(Debian:12) | = 2.20.0-1 | No fix listed |
| debian/ruby-loofah(Debian:12) | = 2.21.3-1 | No fix listed |
| debian/ruby-loofah(Debian:12) | = 2.21.4-1 | No fix listed |
| debian/ruby-loofah(Debian:12) | = 2.22.0-1 | No fix listed |
| debian/ruby-loofah(Debian:12) | = 2.24.0-1 | No fix listed |
| debian/ruby-loofah(Debian:12) | = 2.24.1-1 | No fix listed |
| debian/ruby-loofah(Debian:12) | = 2.25.0-1 | No fix listed |
| debian/ruby-loofah(Debian:12) | = 2.25.1-1 | No fix listed |
| debian/ruby-loofah(Debian:12) | = 2.25.1-2 | No fix listed |
| debian/ruby-loofah(Debian:12) | = 2.25.2-1 | No fix listed |
| debian/ruby-loofah(Debian:12) | = 2.25.3-1 | No fix listed |
| debian/ruby-loofah(Debian:13) | = 2.24.0-1 | No fix listed |
| debian/ruby-loofah(Debian:13) | = 2.24.1-1 | No fix listed |
| debian/ruby-loofah(Debian:13) | = 2.25.0-1 | No fix listed |
| debian/ruby-loofah(Debian:13) | = 2.25.1-1 | No fix listed |
| debian/ruby-loofah(Debian:13) | = 2.25.1-2 | No fix listed |
Show 13 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/ruby-loofah(Debian:13) | = 2.25.2-1 | No fix listed |
| debian/ruby-loofah(Debian:13) | = 2.25.3-1 | No fix listed |
| debian/ruby-loofah(Debian:14) | = 2.24.0-1 | No fix listed |
| debian/ruby-loofah(Debian:14) | = 2.24.1-1 | No fix listed |
| debian/ruby-loofah(Debian:14) | = 2.25.0-1 | No fix listed |
| debian/ruby-loofah(Debian:14) | = 2.25.1-1 | No fix listed |
| debian/ruby-loofah(Debian:14) | = 2.25.1-2 | No fix listed |
| debian/ruby-loofah(Debian:14) | = 2.25.2-1 | No fix listed |
| debian/ruby-loofah(Debian:14) | = 2.25.3-1 | No fix listed |
| ubuntu/ruby-loofah(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/ruby-loofah(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/ruby-loofah(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/ruby-loofah(Ubuntu:26.10) | All versions | No fix listed |
References
- https://github.com/flavorjones/loofah/commit/62c04841e8252a1b5373afcd2b89fb9b8279e317 patch
- https://github.com/flavorjones/loofah/pull/324 patch
- https://github.com/flavorjones/loofah/releases/tag/v2.25.3
- https://github.com/flavorjones/loofah/security/advisories/GHSA-p9wj-w8xq-vjx6 vendor-advisory
- github.com
- github.com
- github.com product
- Debian Security Tracker CVE-2026-126209 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- ENISA EUVD EUVD-2026-124716 third-party-advisory