CVE-2018-8048
MEDIUM6.1EPSS 0.69%Cross-site Scripting in loofah
Published: 3/21/2018Modified: 4/28/2026
Description
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.
Affected packages (4)
- Debian/ruby-loofahfrom 0, < 2.2.1-1
- Debian/ruby-loofahfrom 0, < 2.0.3-2+deb9u1
- RubyGems/loofahfrom 0, < 2.2.1
- RubyGems/nokogirifrom 0, < 1.8.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
References (12)
- ADVISORYhttps://github.com/advisories/GHSA-x7rv-cr6v-4vm4
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2018-8048
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2018-8048
- WEBhttps://github.com/flavorjones/loofah
- WEBhttps://github.com/flavorjones/loofah/commit/f739cf8eac5851f328b8044281d6653f74eff116
- WEBhttps://github.com/flavorjones/loofah/issues/144
- WEBhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/CVE-2018-8048.yml
- WEBhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2018-8048.yml
- WEBhttps://github.com/sparklemotion/nokogiri/pull/1746
- WEBhttps://security.netapp.com/advisory/ntap-20191122-0003
- WEBhttps://www.debian.org/security/2018/dsa-4171
- WEBhttp://www.openwall.com/lists/oss-security/2018/03/19/5