Cloudanix VulnDB

CVE-2026-73490

Medium · 4.7

CVSS

4.7

EPSS

0.3%

Published

Aug 12, 2026

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in a common tool that cleans up user-provided graphics lets attackers sneak in links to outside files, which can run harmful code or track visitors when those graphics are shown.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
High
Impact
Data Exposure
Component
Library
Class
XSS
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The HTML5 sanitizer restricts only xlink:href on SVG use and feImage elements but permits the equivalent plain href attribute, allowing a sanitized document to reference same-origin external resources that browsers will load and execute.

Why it matters to the business

Organizations that accept user-supplied SVG may inadvertently permit external script execution or tracking beacons, increasing risk of cross-site attacks and data leakage until the library is updated.

How an attack unfolds

An attacker supplies an SVG fragment containing an feImage or use element that uses a plain href attribute pointing to an attacker-controlled same-origin resource; the sanitizer accepts the markup, the browser renders the external content, and any embedded scripts or tracking images execute or load.

How to fix it

Upgrade Loofah to version 2.25.2 or later; re-test any custom sanitizer configurations that rely on the SVG allowlist.

How to confirm the fix worked

Confirm the installed Loofah gem version is at least 2.25.2; submit a test SVG containing href on use/feImage elements and verify the attribute is removed or the reference is blocked.

Typical attack path

  1. Attacker crafts malicious SVG using plain href on use or feImage elements
  2. SVG is submitted to an application endpoint that invokes Loofah's default HTML5 sanitizer
  3. Sanitizer emits the markup without stripping the href reference
  4. Browser loads and renders the referenced external SVG or image
  5. Malicious scripts execute or tracking occurs within the application's origin

How to detect it

Search web-application and library logs for SVG upload or sanitization events around the time of publication; inspect rendered page sources for unexpected href attributes on SVG use or feImage elements originating from user content.

What your security team should do

  • Immediately upgrade all Loofah instances to 2.25.2 or newer
  • Review applications that accept and render user-supplied SVG
  • Add automated dependency scanning to CI pipelines to catch future library updates
  • Consider additional server-side validation or Content-Security-Policy restrictions on SVG rendering

The record

Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Prior to 2.25.2, Loofah's HTML5 sanitizer applies its local-reference restriction only to the xlink:href attribute on SVG use and feImage elements, while browsers also accept the plain href attribute. A crafted sanitized SVG can therefore reference an arbitrary same-origin external document; use may render external SVG content containing scripts or other dangerous content, and feImage may load external images for tracking. Applications that sanitize user-supplied SVG with Loofah's default allowlist are affected. This issue is fixed in version 2.25.2.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities