Skip to content
OpenAdvisories
Medium · 5.4 CVE-2018-16468 EUVD-2018-0751GHSA-g4xq-jx4w-4cjv

Loofah Cross-site Scripting vulnerability

Published Oct 30, 2018 · Updated Aug 5, 2024 · Assigned by hackerone

Description

In the Loofah gem for Ruby, through v2.2.2, unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished.

Affected products

VendorProductAffectedFixed
— Loofah (Ruby Gem) v2.2.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ruby-loofah 2.2.3-1 —
Debian 13 ruby-loofah 2.2.3-1 —
Debian 12 ruby-loofah 2.2.3-1 —
Debian 9 ruby-loofah 2.0.3-2+deb9u2 DSA-4364-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS ruby-loofah No fix yet —
Ubuntu 16.04 LTS ruby-loofah 2.0.3-2+deb9u2build0.16.04.1 —
ReleasePackageFixed inAdvisory
SLES 15 rmt-server 1.1.1-3.13.1 SUSE-SU-2019:0272-1
SLES 15 rubygem-loofah 2.2.2-4.3.1 SUSE-SU-2018:3928-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SUSE OpenStack Cloud Crowbar 8 rubygem-loofah 2.0.2-3.5.1 SUSE-SU-2019:0394-1
SUSE OpenStack Cloud 7 rubygem-loofah 2.0.2-3.5.1 SUSE-SU-2019:0394-1
SUSE Enterprise Storage 4 rubygem-loofah 2.0.2-3.5.1 SUSE-SU-2019:0394-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed rmt-server 2.6.13-1.1 openSUSE-SU-2024:10589-1
openSUSE Tumbleweed ruby3.2-rubygem-loofah 2.19.1-1.2 openSUSE-SU-2024:13162-1
openSUSE Tumbleweed rubygem-loofah 2.14.0-1.1 openSUSE-SU-2026:10353-1, openSUSE-SU-2025:15120-1, openSUSE-SU-2024:14171-1

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems loofah < 2.2.3 2.2.3 GHSA-g4xq-jx4w-4cjv

Advisories 10

References