CVE-2026-126208
Last modified
CVE-2026-126208 is a medium-severity vulnerability rated 4.7/10 on the CVSS scale. Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Prior to 2.25.3, Loofah's SVG_ALLOW_LOCAL_HREF safelist lists textPath with lowercase spelling that does not match the HTML5 parser's element name and omits mpath, so external href and xlink:href values on those elements survive sanitization.
Description
Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Prior to 2.25.3, Loofah's SVG_ALLOW_LOCAL_HREF safelist lists textPath with lowercase spelling that does not match the HTML5 parser's element name and omits mpath, so external href and xlink:href values on those elements survive sanitization. Firefox fetches the attacker-chosen URL when a viewer renders the content, which can disclose the viewer's IP address, user agent, referrer, and access to hosts routable only from the viewer's network. Chrome and WebKit do not fetch these references, and the impact is a network request rather than script execution. The rails-html-sanitizer PermitScrubber reuses the affected safelist when SVG elements are permitted. 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.25.3 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-126208?
How severe is CVE-2026-126208?
How do I fix CVE-2026-126208?
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-12620The GridTime 3000 GNSS Time Server leaks the access token in…6.5
- CVE-2026-126203Loofah is a general library for manipulating and transformin…6.1
- 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-126209Loofah is a general library for manipulating and transformin…5.3
- CVE-2026-12621Improper neutralization of input during web page generation …5.4
- CVE-2026-126210@hono/node-server allows running the Hono application on Nod…5.3
- CVE-2026-126211A improper privilege management vulnerability in Fortinet Fo…7.2
- CVE-2026-126212A heap-based buffer overflow vulnerability in Fortinet Forti…7.2
- CVE-2026-126213A improper neutralization of special elements used in an sql…7.1
Are you affected by CVE-2026-126208?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
