Skip to content

CVE-2026-126205 Loofah: Regular expression denial of service in the SVG local-reference check

MediumCVSS 5.3 EPSS 0.40%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
UbuntuDebian

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, the Loofah HTML5 sanitizer checks href and xlink:href on elements in SVG_ALLOW_LOCAL_HREF with a regular expression whose line anchor and newline-matching whitespace cause an all-whitespace value to be rescanned from every line start. An attacker can submit an SVG reference element with a long multiline-whitespace attribute and consume CPU quadratically during sanitization. CRuby 3.1 and earlier and JRuby are affected, while CRuby 3.2 and later uses linear-time regular-expression matching. The default safelist reaches the vulnerable check without a configuration change. This issue is fixed in version 2.25.3.

Upgrade path

10 packages: 1 fixed, 8 with no fix yet.

PackageAffectedFixed inStatus
azure linux rubygem-loofah(Azure Linux 4.0) All versions No fix listed No fix yet
debian/ruby-loofah(Debian 12) = 2.19.1-1; = 2.20.0-1; = 2.21.3-1; = 2.21.4-1 +9 more No fix listed No fix yet
debian/ruby-loofah(Debian 13) = 2.24.0-1; = 2.24.1-1; = 2.25.0-1; = 2.25.1-1 +4 more No fix listed No fix yet
debian/ruby-loofah(Debian 14) = 2.24.0-1; = 2.24.1-1; = 2.25.0-1; = 2.25.1-1 +4 more No fix listed No fix yet
ubuntu/ruby-loofah(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/ruby-loofah(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/ruby-loofah(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/ruby-loofah(Ubuntu 26.10) All versions No fix listed No fix yet
rubygems loofah(RubyGems) < 2.25.3; = 0.2.0; = 0.2.1; = 0.2.2 +62 more 2.25.3 Fixed
flavorjones loofah = < 2.25.3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
rubygems loofah(RubyGems) < 2.25.3 2.25.3
rubygems loofah(RubyGems) = 0.2.0 No fix listed
rubygems loofah(RubyGems) = 0.2.1 No fix listed
rubygems loofah(RubyGems) = 0.2.2 No fix listed
rubygems loofah(RubyGems) = 0.3.0 No fix listed
rubygems loofah(RubyGems) = 0.3.1 No fix listed
rubygems loofah(RubyGems) = 0.4.0 No fix listed
rubygems loofah(RubyGems) = 0.4.1 No fix listed
rubygems loofah(RubyGems) = 0.4.2 No fix listed
rubygems loofah(RubyGems) = 0.4.3 No fix listed
rubygems loofah(RubyGems) = 0.4.4 No fix listed
rubygems loofah(RubyGems) = 0.4.5 No fix listed
rubygems loofah(RubyGems) = 0.4.6 No fix listed
rubygems loofah(RubyGems) = 0.4.7 No fix listed
rubygems loofah(RubyGems) = 1.0.0 No fix listed
rubygems loofah(RubyGems) = 1.0.0.beta.1 No fix listed
rubygems loofah(RubyGems) = 1.1.0 No fix listed
rubygems loofah(RubyGems) = 1.2.0 No fix listed
rubygems loofah(RubyGems) = 1.2.1 No fix listed
rubygems loofah(RubyGems) = 2.0.0 No fix listed
rubygems loofah(RubyGems) = 2.0.1 No fix listed
rubygems loofah(RubyGems) = 2.0.2 No fix listed
rubygems loofah(RubyGems) = 2.0.3 No fix listed
rubygems loofah(RubyGems) = 2.1.0 No fix listed
rubygems loofah(RubyGems) = 2.1.0.rc1 No fix listed
Show 76 more
ProductAffected versionsFixed in
rubygems loofah(RubyGems) = 2.1.0.rc2 No fix listed
rubygems loofah(RubyGems) = 2.1.1 No fix listed
rubygems loofah(RubyGems) = 2.10.0 No fix listed
rubygems loofah(RubyGems) = 2.11.0 No fix listed
rubygems loofah(RubyGems) = 2.12.0 No fix listed
rubygems loofah(RubyGems) = 2.13.0 No fix listed
rubygems loofah(RubyGems) = 2.14.0 No fix listed
rubygems loofah(RubyGems) = 2.15.0 No fix listed
rubygems loofah(RubyGems) = 2.16.0 No fix listed
rubygems loofah(RubyGems) = 2.17.0 No fix listed
rubygems loofah(RubyGems) = 2.18.0 No fix listed
rubygems loofah(RubyGems) = 2.19.0 No fix listed
rubygems loofah(RubyGems) = 2.19.1 No fix listed
rubygems loofah(RubyGems) = 2.2.0 No fix listed
rubygems loofah(RubyGems) = 2.2.1 No fix listed
rubygems loofah(RubyGems) = 2.2.2 No fix listed
rubygems loofah(RubyGems) = 2.2.3 No fix listed
rubygems loofah(RubyGems) = 2.20.0 No fix listed
rubygems loofah(RubyGems) = 2.21.0 No fix listed
rubygems loofah(RubyGems) = 2.21.0.rc1 No fix listed
rubygems loofah(RubyGems) = 2.21.1 No fix listed
rubygems loofah(RubyGems) = 2.21.2 No fix listed
rubygems loofah(RubyGems) = 2.21.3 No fix listed
rubygems loofah(RubyGems) = 2.21.4 No fix listed
rubygems loofah(RubyGems) = 2.22.0 No fix listed
rubygems loofah(RubyGems) = 2.23.0 No fix listed
rubygems loofah(RubyGems) = 2.23.1 No fix listed
rubygems loofah(RubyGems) = 2.24.0 No fix listed
rubygems loofah(RubyGems) = 2.24.1 No fix listed
rubygems loofah(RubyGems) = 2.25.0 No fix listed
rubygems loofah(RubyGems) = 2.25.1 No fix listed
rubygems loofah(RubyGems) = 2.25.2 No fix listed
rubygems loofah(RubyGems) = 2.3.0 No fix listed
rubygems loofah(RubyGems) = 2.3.1 No fix listed
rubygems loofah(RubyGems) = 2.4.0 No fix listed
rubygems loofah(RubyGems) = 2.5.0 No fix listed
rubygems loofah(RubyGems) = 2.6.0 No fix listed
rubygems loofah(RubyGems) = 2.7.0 No fix listed
rubygems loofah(RubyGems) = 2.8.0 No fix listed
rubygems loofah(RubyGems) = 2.9.0 No fix listed
rubygems loofah(RubyGems) = 2.9.1 No fix listed
debian/ruby-loofah(Debian:12) All versions No fix listed
debian/ruby-loofah(Debian:14) All versions No fix listed
debian/ruby-loofah(Debian:13) All versions No fix listed
flavorjones loofah = < 2.25.3 No fix listed
debian/ruby-loofah(Debian:12) = 2.19.1-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.20.0-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.21.3-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.21.4-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.22.0-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.24.0-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.24.1-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.25.0-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.25.1-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.25.1-2 No fix listed
debian/ruby-loofah(Debian:12) = 2.25.2-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.25.3-1 No fix listed
debian/ruby-loofah(Debian:13) = 2.24.0-1 No fix listed
debian/ruby-loofah(Debian:13) = 2.24.1-1 No fix listed
debian/ruby-loofah(Debian:13) = 2.25.0-1 No fix listed
debian/ruby-loofah(Debian:13) = 2.25.1-1 No fix listed
debian/ruby-loofah(Debian:13) = 2.25.1-2 No fix listed
debian/ruby-loofah(Debian:13) = 2.25.2-1 No fix listed
debian/ruby-loofah(Debian:13) = 2.25.3-1 No fix listed
debian/ruby-loofah(Debian:14) = 2.24.0-1 No fix listed
debian/ruby-loofah(Debian:14) = 2.24.1-1 No fix listed
debian/ruby-loofah(Debian:14) = 2.25.0-1 No fix listed
debian/ruby-loofah(Debian:14) = 2.25.1-1 No fix listed
debian/ruby-loofah(Debian:14) = 2.25.1-2 No fix listed
debian/ruby-loofah(Debian:14) = 2.25.2-1 No fix listed
debian/ruby-loofah(Debian:14) = 2.25.3-1 No fix listed
ubuntu/ruby-loofah(Ubuntu:22.04) All versions No fix listed
ubuntu/ruby-loofah(Ubuntu:24.04) All versions No fix listed
ubuntu/ruby-loofah(Ubuntu:26.04) All versions No fix listed
ubuntu/ruby-loofah(Ubuntu:26.10) All versions No fix listed
azure linux rubygem-loofah(Azure Linux:4.0) All versions No fix listed

References