CVE-2018-8048
MEDIUM 6.1CVSS 3.0Cross-site Scripting in loofah
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.
- Published
- 27 Mar 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-x7rv-cr6v-4vm4
- Sources
- NVDJSONOSV GHSA-x7rv-cr6v-4vm4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | loofah_project | loofahcpe:2.3:a:loofah_project:loofah:*:*:*:*:*:ruby:*:* |
< 2.2.1 | 2.2.1 |
| OSV | RubyGems | loofah | < 2.2.1 | 2.2.1 |
| OSV | RubyGems | nokogiri | < 1.8.3 | 1.8.3 |
References
- http://www.openwall.com/lists/oss-security/2018/03/19/5 · Mailing List, Third Party Advisory, WEB
- https://github.com/flavorjones/loofah/issues/144 · Third Party Advisory, WEB
- https://security.netapp.com/advisory/ntap-20191122-0003/ · WEB
- https://www.debian.org/security/2018/dsa-4171 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-8048 · ADVISORY
- 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
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 27 Mar 2018)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Mar 2018)