CVE-2019-15587 json
Loofah Allows Cross-site Scripting
published 2019-10-22 7 y ago modified 2026-06-17 4 mo 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
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-loofahaffected: no fix planned “Will not fix”
-
Red Hat Satellite 6 tfm-ror51-rubygem-loofah, tfm-ror52-rubygem-loofahnot 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-08).
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
-
github.com
/flavorjones/loofah/commit/0c6617af440879ce97440f6eb6c58636456dc8ec
web
-
debian.org
/security/2019/dsa-4554
vendor-advisory, web, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/4WK2UG7ORKRQOJ6E4XJ2NVIHYJES6BYZ/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/XMCWPLYPNIWYAY443IZZJ4IHBBLIHBP5/
vendor-advisory
-
usn.ubuntu.com
/4498-1/
vendor-advisory, third-party-advisory
-
hackerone.com
/reports/709009
web, permissions-required, third-party-advisory
-
github.com
/flavorjones/loofah/issues/171
web, third-party-advisory
-
security.netapp.com
/advisory/ntap-20191122-0003/
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2019-15587
advisory
-
github.com
/flavorjones/loofah
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/loofah/CVE-2019-15587.yml
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/4WK2UG7ORKRQOJ6E4XJ2NVIHYJES6BYZ
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/XMCWPLYPNIWYAY443IZZJ4IHBBLIHBP5
web
-
security.netapp.com
/advisory/ntap-20191122-0003
web
-
usn.ubuntu.com
/4498-1
web
Sources
- CVE List CVE-2019-15587
- GitHub Advisory GHSA-c3gv-9cxf-6f57
- NVD CVE-2019-15587
Fencer Vulns 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.