CVE-2026-126206: Loofah allowed_uri? treats data:text/html as safe text/plain
Affects loofahSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 2.25.3 when convenient.
Data as of 12 Nov 2026, 23:36 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 4.0 | 5.3 |
|---|
- Patch
- Available – fixed in 2.25.3
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 12 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 12 Nov 2026.
What to do
Upgrade loofah to 2.25.3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| RubyGemsloofah | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Loofah to version 2.25.3 or later, where this issue is fixed. The vendor advisory confirms a patch is available in 2.25.3. No other mitigation is required as the default sanitize() path is not affected.
Description
Loofah's allowed_uri? method incorrectly treats data: URIs with HTML5 named character references in the mediatype as safe text/plain, while browsers interpret them as text/html. This discrepancy can lead to cross-site scripting (XSS) vulnerabilities when user-controlled URLs validated by allowed_uri? are rendered in browser-interpreted URI attributes. The issue affects Loofah versions 2.25.2 and >=2.25.2 <2.25.3 and is fixed in version 2.25.3.
References
- github.com/flavorjones/loofah/security/advisories/GHSA-jcff-cj73-4w4f (opens in a new tab)
- github.com/flavorjones/loofah/pull/324 (opens in a new tab)
- github.com/flavorjones/loofah/commit/ad92002966053309f83b550861e2ef04bc714744 (opens in a new tab)
- github.com/flavorjones/loofah (opens in a new tab)
- github.com/flavorjones/loofah/releases/tag/v2.25.3 (opens in a new tab)
- github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/GHSA-jcff-cj73-4w4f.yml (opens in a new tab)