6.1med
CVE-2018-8048
Cross-site Scripting in loofah
Also known as GHSA-x7rv-cr6v-4vm4
Published 8 y ago · modified 4 mo ago · JSON
CVSS
6.1
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
1.9%
percentile 80%
Public exploits
0
none known
Summary
In the Loofah gem through 2.2.0 for Ruby, non-whitelisted HTML attributes may occur in sanitized output by republishing a crafted HTML fragment.
Exploit prediction (EPSS)
1.93% probability of exploitation in the next 30 days, higher than 80% of all scored CVEs.
CVSS scores
| Assigned by | Version | Score | Vector |
|---|---|---|---|
| NVD | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| rubygems | loofah | <2.2.1 | 2.2.1 |
| rubygems | nokogiri | <1.8.3 | 1.8.3 |
Classification
- Weakness
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
- github.com /flavorjones/loofah/issues/144 · x_refsource_CONFIRM, x_transferred
- openwall.com /lists/oss-security/2018/03/19/5 · mailing-list, x_refsource_MLIST, x_transferred
- debian.org /security/2018/dsa-4171 · vendor-advisory, x_refsource_DEBIAN, x_transferred
- security.netapp.com /advisory/ntap-20191122-0003/ · x_refsource_CONFIRM, x_transferred
- nvd.nist.gov /vuln/detail/CVE-2018-8048 · advisory
- github.com /sparklemotion/nokogiri/pull/1746 · web
- github.com /flavorjones/loofah/commit/f739cf8eac5851f328b8044281d6653f74eff116 · web
- github.com /advisories/GHSA-x7rv-cr6v-4vm4 · advisory
- github.com /flavorjones/loofah · web
- github.com /rubysec/ruby-advisory-db/blob/master/gems/loofah/CVE-2018-8048.yml · web
- github.com /rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2018-8048.yml · web
- security.netapp.com /advisory/ntap-20191122-0003 · web
Sources
- CVE List: CVE-2018-8048
- GitHub Advisory: GHSA-x7rv-cr6v-4vm4
- NVD: CVE-2018-8048
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.