{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2018-3741","published":"2018-03-30T19:29:00.333000Z","last_modified":"2026-06-17T01:57:45.283000Z","status":"Modified","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-79"],"cpes":[{"criteria":"cpe:2.3:a:rubyonrails:html_sanitizer:*:*:*:*:*:ruby:*:*","part":"a","vendor":"rubyonrails","product":"html_sanitizer","version_end_including":"1.0.3"}],"cpes_truncated":false,"vendors":["rubyonrails"],"products":["rubyonrails/html_sanitizer"],"epss":{"score":0.01253,"percentile":0.69486,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-px3r-jm9g-c8w8","ecosystem":"RubyGems","name":"rails-html-sanitizer","purl":"pkg:gem/rails-html-sanitizer","ranges":[{"introduced":"0","fixed":"1.0.4"}],"versions":["1.0.0","1.0.1","1.0.2","1.0.3"],"versions_truncated":false}],"severity":"medium","priority_score":52,"links":{"html_es":"/es/cve/CVE-2018-3741/","html_en":"/en/cve/CVE-2018-3741/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-3741","cve_org":"https://www.cve.org/CVERecord?id=CVE-2018-3741"},"untrusted":{"vendor_name":"Rubyonrails","product_name":"Html Sanitizer","desc_en":"There is a possible XSS vulnerability in all rails-html-sanitizer gem versions below 1.0.4 for Ruby. The gem allows non-whitelisted attributes to be present in sanitized output when input with specially-crafted HTML fragments, and these attributes can lead to an XSS attack on target applications. This issue is similar to CVE-2018-8048 in Loofah. All users running an affected release should either upgrade or use one of the workarounds immediately.","affected":[{"untrusted_vendor":"Rails","untrusted_product":"rails-html-sanitizer","versions":[]}],"references":[{"url":"https://github.com/rails/rails-html-sanitizer/commit/f3ba1a839a35f2ba7f941c15e239a1cb379d56ae","tags":["Issue Tracking","Patch","Third Party Advisory"]}]},"bulletins":[{"source":"suse","id":"openSUSE-SU-2026:10361-1","url":"https://www.suse.com/support/update/","published":"2026-03-13T00:00:00+00:00","severity":"high","exploited":false,"untrusted":{"title":"ruby4.0-rubygem-rails-html-sanitizer-1.6.0-1.9 on GA media"}}]}