Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted SVG with external href on textPath/mpath
-
ExploitLoofah safelist fails to strip reference
-
ExecutionVictim renders content in Firefox
-
ImpactBrowser 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
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.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
Mozilla Firefox before 22.0, Firefox ESR 17.x before 17.0.7, Thunderbird before 17.0.7, and Thunderbird ESR 17.x before
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
Use-after-free vulnerability in the serializeToStream implementation in the XMLSerializer component in Mozilla Firefox b
The Chrome Object Wrapper (COW) implementation in Mozilla Firefox before 16.0, Firefox ESR 10.x before 10.0.8, Thunderbi
The crypto.generateCRMFRequest function in Mozilla Firefox before 23.0, Firefox ESR 17.x before 17.0.8, Thunderbird befo
An issue was discovered in the Cisco WebEx Extension before 1.0.7 on Google Chrome, the ActiveTouch General Plugin Conta
The XrayWrapper implementation in Mozilla Firefox before 35.0 and SeaMonkey before 2.32 does not properly interact with
The Chrome Object Wrapper (COW) implementation in Mozilla Firefox before 18.0, Firefox ESR 17.x before 17.0.2, Thunderbi
The Web IDL implementation in Mozilla Firefox before 28.0, Firefox ESR 24.x before 24.4, Thunderbird before 24.4, and Se
Mozilla Firefox before 28.0, Firefox ESR 24.x before 24.4, Thunderbird before 24.4, and SeaMonkey before 2.25 allow remo
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
EUVD-2026-124715
GHSA-345x-3rq2-jfrm
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB