CVE-2018-3741
rails-html-sanitizer Cross-site Scripting vulnerability
6.1
MEDIUM
CVSS 3.1
EPSS 0.12%
Description
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.
How to fix CVE-2018-3741
To remediate CVE-2018-3741, upgrade the affected package to a fixed version below.
- —upgrade to 1.0.4-1 or later
- —upgrade to 1.0.4 or later
Is CVE-2018-3741 being exploited?
Low — EPSS is 0.1%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 1.0.4-1
- from 0, < 1.0.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |