XSS in Rails Rails-Html-Sanitizer
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 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.
Vulnerability class: XSS (Cross-Site Scripting)
EPSS: 0.013 (67.0th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
Affected products
- Rails Rails-html-sanitizer — versions <= 1.0.3
- Rubyonrails Html_sanitizer
Weakness classification (CWE)
Public proof-of-concept exploits
References
- support@hackerone.com (x_refsource_CONFIRM, Patch, Third Party Advisory, Issue Tracking)
Frequently asked questions
- What is CVE-2018-3741?
- CVE-2018-3741 is a medium-severity vulnerability in Rails Rails-Html-Sanitizer, classified under Cross-site Scripting. CVSS score: 6.1/10. Published 2018-03-30.
- How severe is CVE-2018-3741?
- Medium severity. CVSS v3 base score is 6.1 out of 10.
- Is CVE-2018-3741 known to be exploited?
- 7 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.