Skip to main content

Loofah EUVDEUVD-2026-124715

| CVE-2026-126208 MEDIUM
Improper Handling of Case Sensitivity (CWE-178)
2026-11-12 security-advisories@github.com GHSA-345x-3rq2-jfrm
4.7
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted SVG with external href on textPath/mpath
  2. Exploit
    Loofah safelist fails to strip reference
  3. Execution
    Victim renders content in Firefox
  4. Impact
    Browser fetches attacker URL, leaking IP, UA, referrer

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Case sensitivity handling
Exploitation Conditions

The application must sanitize attacker-supplied SVG using Loofah's default allowlist, or use rails-html-sanitizer's PermitScrubber with SVG elements permitted, on a version prior to 2.25.3. The <textPath> bypass specifically occurs on the HTML5 parsing path (where Nokogiri names the element 'textPath', mismatching the lowercase 'textpath' safelist entry), while <mpath> is unrestricted on both the HTML4 and HTML5 paths. Exploitation is LIMITED by three factors: the victim must actually render the stored content (UI:R), the viewing browser must be Firefox (Chrome and WebKit do not fetch external references on these elements), and the outcome is only a network request disclosing IP/user-agent/referrer and internal-host reachability - not script execution.

Impact

This is a medium-severity information-disclosure issue, not a high-priority emergency. The input CVSS of 4.7 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N) is internally consistent: network-reachable, low complexity, no privileges, but requiring victim interaction (rendering the content) with only low confidentiality impact and no integrity or availability impact. No EPSS score and no KEV listing were provided, and the SSVC/decision signal is 'this_month' (vuln.today) rather than act_now or emergency, so the signals converge on a real-but-non-urgent defect. The one amplifying signal is that patch references, a GHSA advisory, and committed test cases publicly document the exact bypass inputs - a public PoC reference exists, though it is not verified as a weaponized working exploit. A key nuance the raw CVSS hides: impact is conditional on the victim's browser - Firefox fetches the attacker URL, while Chrome and WebKit (per the description) do not fetch these references at all, so real-world exploitability is narrower than 'any remote viewer'. Net: a legitimate same-month patch target given how widely Loofah/rails-html-sanitizer is deployed, but not a drop-everything issue - the outcome is a leaked network request (IP, user agent, referrer, and reachability of internally-routable hosts), not code execution.

Exploit ScenarioDerived

An attacker submits user-generated content containing an SVG with a <textPath> or <mpath> element carrying an external href/xlink:href (e.g. pointing at an attacker-controlled server), which Loofah fails to strip. When a victim later views that content in Firefox, the browser fetches the attacker URL, disclosing the victim's IP address, user agent, and referrer, and potentially probing hosts reachable only from the victim's network. Public patch commits and test cases demonstrate the exact bypassing inputs, though no confirmed weaponized exploit is cited.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 12, 2026

Loofah's SVG safelist fails to constrain external href/xlink:href values on the SVG <textPath> and <mpath> elements, so attacker-chosen URLs survive sanitization in applications that permit user-supplied SVG. <textPath> is listed lowercase as textpath in SVG_ALLOW_LOCAL_HREF, which never matches the textPath name produced by the HTML5 parser, and <mpath> is missing from the list entirely; Firefox then fetches the URL when a viewer renders the content, disclosing the viewer's IP address, user agent and referrer, and allowing requests to hosts reachable only from the viewer's network. The outcome is a network request - not script execution - and Chrome and WebKit do not fetch these references, so impact is limited to Firefox viewers who render the stored content; no public exploit code has been identified at time of analysis and the issue is fixed in Loofah 2.25.3.

RemediationAI

Upgrade Loofah to version 2.25.3 or later, the vendor-released patch that corrects the safelist entries for <textPath> and <mpath>; the fix is published as release v2.25.3 (https://github.com/flavorjones/loofah/releases/tag/v2.25.3), via PR https://github.com/flavorjones/loofah/pull/324 and commit https://github.com/flavorjones/loofah/commit/cdd6ff7fb51998eb181bd2da925ddbcfcc8a3b96, with details in advisory https://github.com/flavorjones/loofah/security/advisories/GHSA-345x-3rq2-jfrm. Applications using rails-html-sanitizer should update the transitive Loofah dependency to 2.25.3 or later rather than relying on the sanitizer gem's own version. The advisory names upgrading to Loofah >= 2.25.3 as the mitigation; for deployments that cannot upgrade immediately, the exposure is confined to configurations that allow SVG elements through the sanitizer, so removing or disallowing SVG elements in the allowlist (or rejecting user-supplied SVG before sanitization) prevents the affected elements from being emitted, at the cost of losing legitimate SVG support in sanitized content.

Affected VersionsENISA

loofah < 2.25.3

Affected Packages

rubygems loofah fix: 2.25.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in rubygems

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Loofah is a Ruby HTML/XML sanitization and transformation library built on Nokogiri, and its Loofah::HTML5::SafeList module defines SVG_ALLOW_LOCAL_HREF, the set of SVG elements on which href and xlink:href are rewritten to permit only same-document fragment references. The root cause is CWE-178 (improper handling of case sensitivity) combined with CWE-184 (incomplete list of disallowed inputs): the safelist contained the lowercase string textpath, while the HTML5 parsing path in Nokogiri names the element textPath (SVG element-name case adjustment), so the attribute-restriction check silently missed it; the <mpath> element was never listed at all, leaving it unrestricted on both the HTML4 and HTML5 paths. Because rails-html-sanitizer's PermitScrubber reuses this safelist, Rails applications that permit SVG elements inherit the same gap. The upstream fix (commit cdd6ff7, PR 324) replaces textpath with mpath and textPath and adds regression tests that assert each SVG_ALLOW_LOCAL_HREF entry matches the element name produced by the HTML5 parser and that non-local href/xlink:href values are stripped on html5 and html4 sanitization paths.

Know when Mozilla gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 4.7 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
vuln.today AI 4.7 MEDIUM

Remote unauthenticated injection (AV:N/AC:L/PR:N) but victim must render content (UI:R); sanitizer-boundary escape crossing into the browser is S:C; only limited data leak gives C:L, no I/A impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch available
Nov 12, 2026 - 22:02 EUVD
CVE Published
Nov 12, 2026 - 21:17 cve.org
MEDIUM 4.7

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.4%
Top 69% exploitable
Prevalence
High
Loofah underpins rails-html-sanitizer, a core sanitization dependency across Rails applications
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2015-4495 HIGH POC
8.8 Aug 08

The PDF reader in Mozilla Firefox before 39.0.3, Firefox ESR 38.x before 38.1.1, and Firefox OS before 2.2 allows remote

CVE-2013-1690 HIGH POC
8.8 Jun 26

Mozilla Firefox before 22.0, Firefox ESR 17.x before 17.0.7, Thunderbird before 17.0.7, and Thunderbird ESR 17.x before

CVE-2013-0758 CRITICAL POC
9.3 Jan 13

Mozilla Firefox before 18.0, Firefox ESR 10.x before 10.0.12 and 17.x before 17.0.2, Thunderbird before 17.0.2, Thunderb

CVE-2013-0753 CRITICAL POC
9.3 Jan 13

Use-after-free vulnerability in the serializeToStream implementation in the XMLSerializer component in Mozilla Firefox b

CVE-2012-3993 CRITICAL POC
9.3 Oct 10

The Chrome Object Wrapper (COW) implementation in Mozilla Firefox before 16.0, Firefox ESR 10.x before 10.0.8, Thunderbi

CVE-2013-1710 CRITICAL POC
10.0 Aug 07

The crypto.generateCRMFRequest function in Mozilla Firefox before 23.0, Firefox ESR 17.x before 17.0.8, Thunderbird befo

CVE-2017-3823 HIGH POC
8.8 Feb 01

An issue was discovered in the Cisco WebEx Extension before 1.0.7 on Google Chrome, the ActiveTouch General Plugin Conta

CVE-2014-8636 HIGH POC
7.5 Jan 14

The XrayWrapper implementation in Mozilla Firefox before 35.0 and SeaMonkey before 2.32 does not properly interact with

CVE-2013-0757 CRITICAL POC
9.3 Jan 13

The Chrome Object Wrapper (COW) implementation in Mozilla Firefox before 18.0, Firefox ESR 17.x before 17.0.2, Thunderbi

CVE-2014-1510 CRITICAL POC
9.8 Mar 19

The Web IDL implementation in Mozilla Firefox before 28.0, Firefox ESR 24.x before 24.4, Thunderbird before 24.4, and Se

CVE-2014-1511 CRITICAL POC
9.8 Mar 19

Mozilla Firefox before 28.0, Firefox ESR 24.x before 24.4, Thunderbird before 24.4, and SeaMonkey before 2.25 allow remo

CVE-2013-0643 HIGH
8.8 Feb 27

The Firefox sandbox in Adobe Flash Player before 10.3.183.67 and 11.x before 11.6.602.171 on Windows and Mac OS X, and b

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy