cbcvebase.
CVE-2018-3741
published 2018-03-30

CVE-2018-3741: 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…

PriorityP426medium6.1CVSS 3.1
AVNACLPRNUIRSCCLILAN
EPSS
1.29%
66.6th percentile
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

5 ranges
VendorProductVersion rangeFixed in
debianruby-rails-html-sanitizer< ruby-rails-html-sanitizer 1.0.4-1 (bookworm)ruby-rails-html-sanitizer 1.0.4-1 (bookworm)
linuxlinux_kernel>= 0 < 3.13.0-156.2063.13.0-156.206
railsrails-html-sanitizer<= 1.0.3
railsrails-html-sanitizer>= 0 < 1.0.41.0.4
rubyonrailshtml_sanitizer<= 1.0.3

CVSS provenance

nvdv3.16.1MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:P/A:N
ghsa6.1MEDIUM
osv6.1MEDIUM
vendor_debian6.1MEDIUM
vendor_redhat6.1MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.