GitHub Advisoryadvisory · RubyGems
GHSA-x7rv-cr6v-4vm4 Cross-site Scripting in loofah
MEDIUM
Official page ↗
- Aliases
- CVE-2018-8048
- Ecosystem
- RubyGems
- Packages
- loofah, nokogiri
- Severity
- Moderate
- CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2020-06-16
Affected packages
• RubyGems loofah: < 2.2.1 → fixed in 2.2.1
• RubyGems nokogiri: < 1.8.3 → fixed in 1.8.3
Description
Loofah allows non-whitelisted attributes to be present in sanitized output when input with specially-crafted HTML fragments.
Users are affected if running Loofah = 2.9.2.
JRuby users are not affected.
Related
Alias · CVE (1)
- CVE-2018-8048 In the Loofah gem through 2.2.0 for Ruby, non-whitelisted HTML attributes may occur in sanitized output by republishing a crafted HTML… vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-8048 advisory
- https://github.com/flavorjones/loofah/issues/144 web
- https://github.com/sparklemotion/nokogiri/pull/1746 web
- https://github.com/flavorjones/loofah/commit/f739cf8eac5851f328b8044281d6653f74eff116 web
- https://github.com/advisories/GHSA-x7rv-cr6v-4vm4 advisory
- https://github.com/flavorjones/loofah web
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/CVE-2018-8048.yml web
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2018-8048.yml web
- https://security.netapp.com/advisory/ntap-20191122-0003 web
- https://www.debian.org/security/2018/dsa-4171 web
- http://www.openwall.com/lists/oss-security/2018/03/19/5 web