Skip to content

CVE-2022-23515 Improper neutralization of data URIs may allow XSS in Loofah

MediumCVSS 6.1 EPSS 0.88% PoC
Published
Updated
Exploit status
Proof-of-concept only
Technology
UbuntuDebian

Description

Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah >= 2.1.0, < 2.19.1 is vulnerable to cross-site scripting via the image/svg+xml media type in data URIs. This issue is patched in version 2.19.1.

Upgrade path

11 packages: 5 fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/ruby-loofah(Ubuntu 16.04) = 2.0.2-1; = 2.0.3-1; = 2.0.3-2; = 2.0.3-2+deb9u1build0.16.04.1 +3 more No fix listed No fix yet
ubuntu/ruby-loofah(Ubuntu 18.04) = 2.0.3-2; = 2.2.2-1; All versions No fix listed No fix yet
ubuntu/ruby-loofah(Ubuntu 20.04) = 2.2.3-1; = 2.3.1+dfsg-1; = 2.4.0+dfsg-1; All versions No fix listed No fix yet
ubuntu/ruby-loofah(Ubuntu 22.04) = 2.12.0-1; = 2.13.0-1; = 2.13.0-2; All versions No fix listed No fix yet
debian/ruby-loofah(Debian 12) < 2.19.1-1 2.19.1-1 Fixed
debian/ruby-loofah(Debian 13) < 2.19.1-1 2.19.1-1 Fixed
debian/ruby-loofah(Debian 14) < 2.19.1-1 2.19.1-1 Fixed
loofah project loofah >= 2.1.0, < 2.19.1 2.19.1 Fixed
rubygems loofah(RubyGems) = 2.1.0; = 2.1.1; = 2.2.0; = 2.2.1 +22 more 2.19.1 Fixed
debian linux = 10.0 No fix listed Versions listed
flavorjones loofah = >= 2.1.0, < 2.19.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
rubygems loofah(RubyGems) >= 2.1.0, < 2.19.1 2.19.1
rubygems loofah(RubyGems) = 2.1.0 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.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.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
Show 25 more
ProductAffected versionsFixed in
rubygems loofah(RubyGems) = 2.9.1 No fix listed
flavorjones loofah = >= 2.1.0, < 2.19.1 No fix listed
ubuntu/ruby-loofah(Ubuntu:22.04) All versions No fix listed
loofah project loofah >= 2.1.0, < 2.19.1 2.19.1
debian linux = 10.0 No fix listed
debian/ruby-loofah(Debian:12) < 2.19.1-1 2.19.1-1
debian/ruby-loofah(Debian:14) < 2.19.1-1 2.19.1-1
debian/ruby-loofah(Debian:13) < 2.19.1-1 2.19.1-1
ubuntu/ruby-loofah(Ubuntu:16.04) All versions No fix listed
ubuntu/ruby-loofah(Ubuntu:16.04) = 2.0.2-1 No fix listed
ubuntu/ruby-loofah(Ubuntu:16.04) = 2.0.3-1 No fix listed
ubuntu/ruby-loofah(Ubuntu:16.04) = 2.0.3-2 No fix listed
ubuntu/ruby-loofah(Ubuntu:16.04) = 2.0.3-2+deb9u1build0.16.04.1 No fix listed
ubuntu/ruby-loofah(Ubuntu:16.04) = 2.0.3-2+deb9u2build0.16.04.1 No fix listed
ubuntu/ruby-loofah(Ubuntu:16.04) = 2.0.3-2+deb9u3build0.16.04.1 No fix listed
ubuntu/ruby-loofah(Ubuntu:18.04) All versions No fix listed
ubuntu/ruby-loofah(Ubuntu:18.04) = 2.0.3-2 No fix listed
ubuntu/ruby-loofah(Ubuntu:18.04) = 2.2.2-1 No fix listed
ubuntu/ruby-loofah(Ubuntu:20.04) All versions No fix listed
ubuntu/ruby-loofah(Ubuntu:20.04) = 2.2.3-1 No fix listed
ubuntu/ruby-loofah(Ubuntu:20.04) = 2.3.1+dfsg-1 No fix listed
ubuntu/ruby-loofah(Ubuntu:20.04) = 2.4.0+dfsg-1 No fix listed
ubuntu/ruby-loofah(Ubuntu:22.04) = 2.12.0-1 No fix listed
ubuntu/ruby-loofah(Ubuntu:22.04) = 2.13.0-1 No fix listed
ubuntu/ruby-loofah(Ubuntu:22.04) = 2.13.0-2 No fix listed

References