CVE-2026-126203
CVE-2026-126203 · Loofah: Mutation XSS in the HTML5 scrubbers through unescaped attribute values
CVSS 6.1 · Medium · EPSS 0.3% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- loofahNo fix published
- ruby-nokogiri Debian 12No fix published
- ruby-nokogiri Debian 13No fix published
- ruby-nokogiri Debian 14No fix published
- and 8 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="ruby-nokogiri"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. From 2.21.0 until 2.25.3, Loofah's HTML5 APIs Loofah.html5_fragment, Loofah.html5_document, and the scrub_html5_* methods can emit sanitized output that a browser reparses as different markup when used with Nokogiri before 1.19.5, because those Nokogiri versions do not escape angle brackets in attribute values. MathML can place markup inside an allowed attribute so the reparsed output becomes live HTML. The :strip scrubber is affected in every browser, while :prune and :escape are affected in WebKit browsers. Loofah's HTML4 APIs, Loofah::Helpers.sanitize, :whitewash, rails-html-sanitizer's default configuration, and JRuby are not affected. This issue is fixed in version 2.25.3.
- Published
- Updated
Affected products and versions
loofah
- Versions
- >= 2.21.0, < 2.25.3: Affected
No fix published
ruby-nokogiri Debian 12
- Versions
- 1.13.10+dfsg-2
- 1.14.2+dfsg-1
- 1.14.3+dfsg-1
- 1.14.3+dfsg-2
- 1.15.4+dfsg-1
- 1.16.0+dfsg-1
All versions (18)
- 1.16.0+dfsg-2
- 1.16.2+dfsg-1
- 1.16.4+dfsg-1
- 1.17.2+dfsg-1~exp1
- 1.18.10+dfsg-1
- 1.18.10+dfsg-2
- 1.18.10+dfsg-3
- 1.18.2+dfsg-1
- 1.19.1+dfsg-1
- 1.19.3+dfsg-1
- 1.19.4+dfsg-1
- 1.19.7+dfsg-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-nokogiri Debian 13
- Versions
- 1.18.10+dfsg-1
- 1.18.10+dfsg-2
- 1.18.10+dfsg-3
- 1.18.2+dfsg-1
- 1.19.1+dfsg-1
- 1.19.3+dfsg-1
All versions (8)
- 1.19.4+dfsg-1
- 1.19.7+dfsg-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-nokogiri Debian 14
- Versions
- 1.18.10+dfsg-1
- 1.18.10+dfsg-2
- 1.18.10+dfsg-3
- 1.18.2+dfsg-1
- 1.19.1+dfsg-1
- 1.19.3+dfsg-1
All versions (8)
- 1.19.4+dfsg-1
- 1.19.7+dfsg-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
loofah RubyGems
- Versions
- 2.21.0
- 2.21.1
- 2.21.2
- 2.21.3
- 2.21.4
- 2.22.0
All versions (13)
- 2.23.0
- 2.23.1
- 2.24.0
- 2.24.1
- 2.25.0
- 2.25.1
- 2.25.2
- Affected ranges
- ECOSYSTEM: ≥ 2.21.0, < 2.25.3
Update to 2.25.3
ruby-loofah Ubuntu 16.04 LTS
- Versions
- 2.0.2-1
- 2.0.3-1
- 2.0.3-2
- 2.0.3-2+deb9u1build0.16.04.1
- 2.0.3-2+deb9u2build0.16.04.1
- 2.0.3-2+deb9u3build0.16.04.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-loofah Ubuntu 18.04 LTS
- Versions
- 2.0.3-2
- 2.2.2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-loofah Ubuntu 20.04 LTS
- Versions
- 2.2.3-1
- 2.3.1+dfsg-1
- 2.4.0+dfsg-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-loofah Ubuntu 22.04 LTS
- Versions
- 2.12.0-1
- 2.13.0-1
- 2.13.0-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-loofah Ubuntu 24.04 LTS
- Versions
- 2.21.3-1
- 2.21.4-1
- 2.22.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-loofah Ubuntu 26.10
- Versions
- 2.25.0-1
- 2.25.1-2
- 2.25.2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-loofah Ubuntu 26.04 LTS
- Versions
- 2.24.1-1
- 2.25.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- 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://nvd.nist.gov/vuln/detail/CVE-2026-126203