Cross-site Scripting (XSS) Affecting ruby-rails-html-sanitizer package, versions <1.0.4-1
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-DEBIANUNSTABLE-RUBYRAILSHTMLSANITIZER-365093
- published 30 Mar 2018
- disclosed 30 Mar 2018
Introduced: 30 Mar 2018
CVE-2018-3741 Open this link in a new tabHow to fix?
Upgrade Debian:unstable ruby-rails-html-sanitizer to version 1.0.4-1 or higher.
NVD Description
Note: Versions mentioned in the description apply only to the upstream ruby-rails-html-sanitizer package and not the ruby-rails-html-sanitizer package as distributed by Debian.
See How to fix? for Debian:unstable relevant fixed versions and status.
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.