medium6.1
CVE-2026-126203
Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri.
Impact
Loofah: Mutation XSS in the HTML5 scrubbers through unescaped attribute values
An attacker can exploit this over the network, without logging in, but a user has to do something, such as open a file or a link. If it succeeds: low risk of data being read, low risk of data or systems being changed. The attack can reach beyond the vulnerable component itself.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| rubygems | loofah | >= 2.21.0, < 2.25.3 | 2.25.3 |
Affected products · Flavorjones
| Product | Affected versions |
|---|---|
| Loofah | from 2.21.0, before 2.25.3 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/flavorjones/loofah/security/advisories/GHSA-h6v6-rg66-fqj4
- https://github.com/flavorjones/loofah/pull/324
- https://github.com/sparklemotion/nokogiri/pull/3741
- https://github.com/flavorjones/loofah/commit/7ba1e7b77e043fb7dc832ef746fcbf83137135e6
- https://github.com/sparklemotion/nokogiri/commit/635abc8d65c75d594ddf8957fbfbfd822c2c0dbd
- https://github.com/flavorjones/loofah/releases/tag/v2.25.3
- https://github.com/sparklemotion/nokogiri/releases/tag/v1.19.5
- https://github.com/advisories/GHSA-h6v6-rg66-fqj4
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/GHSA-h6v6-rg66-fqj4.yml