{"id":"UBUNTU-CVE-2018-3741","details":"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.","modified":"2025-10-24T04:46:47Z","published":"2018-03-30T19:29:00Z","upstream":["CVE-2018-3741"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-3741"},{"type":"REPORT","url":"http://www.openwall.com/lists/oss-security/2018/03/22"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-3741"}],"affected":[{"package":{"name":"ruby-rails-html-sanitizer","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/ruby-rails-html-sanitizer@1.0.3-2?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.2-1","1.0.3-1","1.0.3-2"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-rails-html-sanitizer","binary_version":"1.0.3-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-3741.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}