CVE-2026-73490
loofah: Loofah: SVG `href` attribute bypasses local-reference restriction
Overview
Description
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.
Source: OX vulnerability database
Severity
4.7 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness: CWE-79
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| RubyGems | loofah | <2.25.2 | 2.25.2 |
Open a package to see all its vulnerabilities.
Operating systems · 29 fixes
Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | tfm-rubygem-graphql | affected |
SUSE Linux Enterprise 2 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | hawk2 | 2.7.2+git.1788518533.7d4dadd6-160000.1.1 | SUSE-SU-2026:24195-1 |
| 16.1 | hawk-apiserver | 0.2.4+git.1792406875.6ed758a-160100.1.1 | SUSE-SU-2026:24712-1 |
| 16.1 | python313-pillow +1 | 11.3.0-160100.3.1 | SUSE-SU-2026:24712-1 |
| 16.1 | hawk2 | 2.7.2+git.1789128469.a738abc1-160100.1.1 | SUSE-SU-2026:24712-1 |
chainguard 1 release · 12 packages
| Release | Package | Fixed in |
|---|---|---|
| commercial-gitlab-rails-ee-19-2 +1 | 19.2.7-r4 | |
| gitlab-rails-ce-fips-19-3 | 19.3.1-r3 | |
| gitlab-rails-ce-19-3 | 19.3.1-r6 | |
| pghero +1 | 3.8.0-r4 | |
| ruby3-4-rails-7-2 | 7.2.3.1-r10 | |
| ruby3-2-rails-7-2 | 7.2.3.1-r8 |
6 more rows
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | ruby-loofah | affected |
| 12 | ruby-loofah | affected |
| 13 | ruby-loofah | affected |
| 14 | ruby-loofah | 2.25.2-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| ruby-loofah | affected |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | hawk2 | 2.7.2+git.1792148770.648dcddb-1.1 | openSUSE-SU-2026:12153-1 |
openSUSE Leap 2 releases · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | hawk2 | 2.7.2+git.1788518533.7d4dadd6-160000.1.1 | openSUSE-SU-2026:22068-1 |
| 16.1 | hawk-apiserver | 0.2.4+git.1792406875.6ed758a-160100.1.1 | openSUSE-SU-2026:22305-1 |
| 16.1 | hawk2 | 2.7.2+git.1789128469.a738abc1-160100.1.1 | openSUSE-SU-2026:22305-1 |
wolfi 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| ruby4-0-rails-8-1 | 8.1.3-r10 | |
| ruby3-4-rails-8-1 | 8.1.3-r11 | |
| ruby3-2-rails-8-1 | 8.1.3-r9 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-73490
- github.com https://github.com/flavorjones/loofah
- github.com https://github.com/flavorjones/loofah/blob/main/CHANGELOG.md#2252--2026-07-15
- github.com https://github.com/flavorjones/loofah/commit/20867b9be689521887364b74822c41ef830523c9
- github.com https://github.com/flavorjones/loofah/pull/308
- github.com https://github.com/flavorjones/loofah/releases/tag/v2.25.2
- github.com https://github.com/flavorjones/loofah/security/advisories/GHSA-9wjq-cp2p-hrgf
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-73490
- rubygems.org https://rubygems.org/gems/loofah/versions/2.25.2
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-73490
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.