CVE-2026-126203
Last modified
CVE-2026-126203 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| flavorjones | loofah | >= 2.21.0, < 2.25.3 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-126203?
How severe is CVE-2026-126203?
How do I fix CVE-2026-126203?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-126196pgEdge Postgres MCP Server enables SQL queries against Postg…8.1
- CVE-2026-126197pgEdge Postgres MCP Server enables SQL queries against Postg…8.8
- CVE-2026-126198pgEdge Postgres MCP Server enables SQL queries against Postg…3.1
- CVE-2026-126199pgEdge Postgres MCP Server enables SQL queries against Postg…6.8
- CVE-2026-1262IBM InfoSphere Information Server 11.7.0.0 through 11.7.1.6 …4.3
- CVE-2026-12620The GridTime 3000 GNSS Time Server leaks the access token in…6.5
- CVE-2026-126204express-rate-limit is a basic rate-limiting middleware for E…3.7
- CVE-2026-126205Loofah is a general library for manipulating and transformin…5.3
- CVE-2026-126206Loofah is a general library for manipulating and transformin…5.3
- CVE-2026-126207Loofah is a general library for manipulating and transformin…4.7
- CVE-2026-126208Loofah is a general library for manipulating and transformin…4.7
- CVE-2026-126209Loofah is a general library for manipulating and transformin…5.3
Are you affected by CVE-2026-126203?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
