Skip to content
Fencer Intel
medium 5.4

CVE-2019-15587 json

Loofah Allows Cross-site Scripting

published 7y ago modified 4mo ago also GHSA-c3gv-9cxf-6f57 , EUVD-2019-0741

cvss
5.4
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.6%
EPSS 1.6% chance of exploitation in 30 days, percentile 75%
public exploits
0
none known

Summary

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

Patch / fix

  • rubygems loofah 2.3.1
  • ruby-loofah Debian 14, Debian 13, Debian 12 2.3.1+dfsg-1

debian advisories DEBIAN-CVE-2019-15587

  • ruby-loofah Ubuntu 16.04 LTS 2.0.3-2+deb9u3build0.16.04.1

ubuntu advisories UBUNTU-CVE-2019-15587

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • rubygem-loofah OpenStack Cloud Crowbar 9, OpenStack Cloud Crowbar 8 2.0.2-3.11.1
  • rubygem-loofah SLE High Availability Extension 15 SP4, SLE High Availability Extension 15 SP3, SLE High Availability Extension 15 SP2 +4 more 2.2.2-150000.4.6.1

suse advisories SUSE-SU-2022:4075-1SUSE-SU-2022:3868-1

  • rubygem-loofah openSUSE Tumbleweed 2.23.1-1.5
  • rubygem-loofah openSUSE Tumbleweed 2.23.1-1.3
  • rubygem-loofah openSUSE Tumbleweed 2.22.0-1.5
  • rubygem-loofah openSUSE Tumbleweed 2.14.0-1.1
  • ruby3.2-rubygem-loofah openSUSE Tumbleweed 2.19.1-1.2

opensuse advisories openSUSE-SU-2026:10353-1openSUSE-SU-2025:15120-1openSUSE-SU-2024:14171-1openSUSE-SU-2024:11900-1openSUSE-SU-2024:13162-1

Is CVE-2019-15587 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2019-15587 updated cvss 4.6

rubygem-loofah: XXS when a crafted SVG element is republished

  • Red Hat CloudForms Management Engine 5 cfme-gemset, cfme-amazon-smartstate Red Hat Software Collections rh-ror50-rubygem-loofah
    affected: no fix planned “Will not fix”
  • Red Hat Satellite 6 tfm-ror51-rubygem-loofah, tfm-ror52-rubygem-loofah
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.56% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
NVD 2.0 3.5 AV:N/AC:M/Au:S/C:N/I:P/A:N
GitHub 3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
rubygems loofah
<2.3.1
2.3.1

Affected products

  • n/a Loofah (rubygem)

Classification

Weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.