{"cve":"CVE-2018-8048","nvd":{"published":"2018-03-27T17:29:00.757","modified":"2026-06-17T02:04:10.727","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["http://www.openwall.com/lists/oss-security/2018/03/19/5","https://github.com/flavorjones/loofah/issues/144","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"],"products":["debian:debian_linux","loofah_project:loofah"],"source":"nvd","synced_at":"2026-10-19T20:49:59.483420567+00:00"},"epss":{"cve":"CVE-2018-8048","score":0.01925,"percentile":0.79952,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-x7rv-cr6v-4vm4","url":"https://osv.dev/vulnerability/GHSA-x7rv-cr6v-4vm4","summary":"Cross-site Scripting in loofah","modified":"2024-02-22T05:21:17.045269Z","packages":[{"ecosystem":"RubyGems","name":"loofah","purl":"pkg:gem/loofah","ranges":["<2.2.1"],"fixed":["2.2.1"]},{"ecosystem":"RubyGems","name":"nokogiri","purl":"pkg:gem/nokogiri","ranges":["<1.8.3"],"fixed":["1.8.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}