Skip to content
OpenAdvisories
Medium · 5.4 CVE-2019-15587 EUVD-2019-0741GHSA-c3gv-9cxf-6f57

Loofah Allows Cross-site Scripting

Published Oct 22, 2019 · Updated Aug 5, 2024 · Assigned by hackerone

Description

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

Affected products

VendorProductAffectedFixed
— Loofah (rubygem) Fixed in v2.3.1 —

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.3.1+dfsg-1 —
Debian 13 ruby-loofah 2.3.1+dfsg-1 —
Debian 12 ruby-loofah 2.3.1+dfsg-1 —
Debian 10 ruby-loofah 2.2.3-1+deb10u1 DSA-4554-1
Debian 9 ruby-loofah 2.0.3-2+deb9u3 DSA-4554-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS ruby-loofah No fix yet —
Ubuntu 16.04 LTS ruby-loofah 2.0.3-2+deb9u3build0.16.04.1 USN-4498-1
ReleasePackageFixed inAdvisory
SLES 15 SP4 rubygem-loofah 2.2.2-150000.4.6.1 SUSE-SU-2022:3868-1
SLES 15 SP3 rubygem-loofah 2.2.2-150000.4.6.1 SUSE-SU-2022:3868-1
SLES 15 SP2 rubygem-loofah 2.2.2-150000.4.6.1 SUSE-SU-2022:3868-1
SLES 15 SP1 rubygem-loofah 2.2.2-150000.4.6.1 SUSE-SU-2022:3868-1
SLES 15 rubygem-loofah 2.2.2-150000.4.6.1 SUSE-SU-2022:3868-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SUSE OpenStack Cloud Crowbar 9 rubygem-loofah 2.0.2-3.11.1 SUSE-SU-2022:4075-1
SUSE OpenStack Cloud Crowbar 8 rubygem-loofah 2.0.2-3.11.1 SUSE-SU-2022:4075-1
ReleasePackageFixed inAdvisory
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
openSUSE Leap 15.4 rubygem-loofah 2.2.2-150000.4.6.1 SUSE-SU-2022:3868-1
openSUSE Leap 15.3 rubygem-loofah 2.2.2-150000.4.6.1 SUSE-SU-2022:3868-1

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems loofah < 2.3.1 2.3.1 GHSA-c3gv-9cxf-6f57

Advisories 9

References