SARA / Free Tools / CVE / CVE-2018-3741

CVE-2018-3741 — There is a possible XSS vulnerability in all rails-html-sanitizer gem versions b

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 tar

CVSS
— —
EPSS
0.13% (top 67.90%)
CWE
CWE-79
Published
2018-03-30T19:00:00.000Z
Last modified
2024-08-05T04:50:30.644Z
CVSS vector
—

01What is this vulnerability?

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…

02Affected products

VendorProductVersions
Railsrailshtml-sanitizer — <= 1.0.3

03Active exploitation status

Not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog. EPSS is the best forward-looking signal — see the EPSS row above.

04Recommended remediation

05Technical details

For the full vendor write-up, exploit chains, and reference implementations, see the references list in section 09.

06Detection signatures

Ask SARA in chat to draft a starting detection for this CVE in your stack of choice.

07Related CVEs

CVE-2018-8048
Cited in vendor advisory

08Timeline

09References

Want this in your SOAR or SIEM?
SARA's API returns EPSS, CVSS, KEV, and an analyst-grade summary in one call.
Read the API reference →