Cross-site Scripting (XSS) The advisory has been revoked - it doesn't affect any version of package ruby-rails-html-sanitizer  (opens in a new tab)


Threat Intelligence

EPSS
1.25% (68th percentile)

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 IDSNYK-UBUNTU1804-RUBYRAILSHTMLSANITIZER-365091
  • published30 Mar 2018
  • disclosed30 Mar 2018

Introduced: 30 Mar 2018

CVE-2018-3741  (opens in a new tab)
CWE-79  (opens in a new tab)

Amendment

The Ubuntu security team deemed this advisory irrelevant for Ubuntu:18.04.

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 Ubuntu.

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.