flavorjones/loofah · Security
Cross-site Scripting in loofah
- GHSA ID
- GHSA-x7rv-cr6v-4vm4
- CVE ID
- CVE-2018-8048
- Severity
- medium
- Published
- Updated
- CVSS
- 6.1 · CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CVSS v3
- 6.1 · CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
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.2.1, but only:
- when running on MRI or RBX,
- in combination with libxml2 >= 2.9.2.
JRuby users are not affected.
CWEs
- CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-8048 ↗
- https://github.com/flavorjones/loofah/issues/144 ↗
- https://github.com/advisories/GHSA-x7rv-cr6v-4vm4 ↗
- https://security.netapp.com/advisory/ntap-20191122-0003/ ↗
- https://www.debian.org/security/2018/dsa-4171 ↗
- http://www.openwall.com/lists/oss-security/2018/03/19/5 ↗
- https://github.com/flavorjones/loofah/commit/f739cf8eac5851f328b8044281d6653f74eff116 ↗
- https://github.com/sparklemotion/nokogiri/pull/1746 ↗
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/CVE-2018-8048.yml ↗
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2018-8048.yml ↗