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)
Published · last modified .
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.
EPSS exploit prediction
EPSS: 0.013 (68.3th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 68th percentile — 68.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.013 · newest: 0.013 · change: -0.000
Affected products
- Rails Rails-Html-Sanitizer — versions <= 1.0.3
- Rubyonrails HTML Sanitizer
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/rails/rails-html-sanitizer/commit/f3ba1a839a35f2ba7f941c15e239a1cb37… (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.