CVE-2026-126203Flavorjones Loofah cross-site scripting (XSS)
CVSS score
6.1
Medium
CVSS 3.1 from github.com
Exploit probability (EPSS)
0.27%
0.27% chance of exploitation in the next 30 days, higher than 19.5% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official description
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.
Source: NVD · CNA: security-advisories@github.com
How to fix it, step by step
Check whether you're affected
Find every system running flavorjones Loofah and compare its version with the affected versions.
Update to a fixed version
- Update Loofah to 2.25.3 or later.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Affected products
| Affected products | Versions |
|---|---|
| flavorjones Loofah | >= 2.21.0, < 2.25.3 |
Weakness
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-126203 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.3% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-126203?
CVE-2026-126203 has a CVSS 3.1 base score of 6.1 (medium).
Which versions are affected?
Flavorjones Loofah (>= 2.21.0, < 2.25.3)
Is there a patch for CVE-2026-126203?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/flavorjones/loofah/commit/7ba1e7b77e043fb7dc832ef746fcbf83137135e6
- github.com/flavorjones/loofah/pull/324
- github.com/flavorjones/loofah/releases/tag/v2.25.3
- github.com/flavorjones/loofah/security/advisories/GHSA-h6v6-rg66-fqj4
- github.com/sparklemotion/nokogiri/commit/635abc8d65c75d594ddf8957fbfbfd822c2c0dbd
- github.com/sparklemotion/nokogiri/pull/3741
- github.com/sparklemotion/nokogiri/releases/tag/v1.19.5
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.