{"id":"CVE-2018-8048","published":"2018-03-27T17:00:00Z","modified":"2024-08-05T06:46:13Z","title":"In the Loofah gem through 2.2.0 for Ruby, non-whitelisted HTML attributes may occur in sanitized output by…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01925,"percentile":0.80463,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/flavorjones/loofah/issues/144","tags":["x_refsource_CONFIRM"]},{"url":"http://www.openwall.com/lists/oss-security/2018/03/19/5","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.debian.org/security/2018/dsa-4171","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://security.netapp.com/advisory/ntap-20191122-0003/","tags":["x_refsource_CONFIRM"]}],"priority":{"score":16.1,"factors":[{"name":"EPSS percentile","points":16.09}]},"affected":[{"ecosystem":"RubyGems","package":"loofah","vulnerableRanges":["<2.2.1"],"patched":["2.2.1"],"from":["GHSA-x7rv-cr6v-4vm4"],"provenance":"source"},{"ecosystem":"RubyGems","package":"nokogiri","vulnerableRanges":["<1.8.3"],"patched":["1.8.3"],"from":["GHSA-x7rv-cr6v-4vm4"],"provenance":"source"}],"summary":{"text":"The flaw lies in the Loofah gem for Ruby, through version 2.2.0, where non-whitelisted HTML attributes can appear in sanitized output.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:25Z"},"euvd":{"id":"EUVD-2018-0188","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-flavorjones-loofah-cve-2018-8048","children":[{"from":"CVE-2018-8048","to":"CVE-2022-23514","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/loofah/html5/scrub.rb"],"commits":["https://github.com/flavorjones/loofah/commit/f739cf8eac5851f328b8044281d6653f74eff116","https://github.com/flavorjones/loofah/commit/a6e0a1ab90675a17b1b2be189129d94139e4b143"],"basis":"shared function","functions":["scrub_attributes","scrub_css"]}]},{"from":"CVE-2018-8048","to":"CVE-2018-3741","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"This issue is similar to CVE-2018-8048 in Loofah.","from":"CVE.org","in":"CVE-2018-3741"}]}],"packageHistory":[{"cve":"CVE-2018-8048","published":"2018-03-27","fixed":"2.2.1","kev":false},{"cve":"CVE-2018-16468","published":"2018-10-30","fixed":"2.2.3","kev":false,"link":{"from":"CVE-2018-8048","to":"CVE-2018-16468","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:loofah","fromFixed":"2.2.1","toFixed":"2.2.3","daysApart":217},{"kind":"similar","provenance":"machine","score":0.36,"basis":"same package + description similarity"}]}},{"cve":"CVE-2019-15587","published":"2019-10-22","fixed":"2.3.1","kev":false},{"cve":"CVE-2022-23514","published":"2022-12-14","fixed":"2.19.1","kev":false}],"package":"RubyGems:loofah"}}