Cross-site Scripting (XSS) Affecting ruby-rails-html-sanitizer package, versions *


Severity

Recommended
low

Based on Debian security rating.

Threat Intelligence

EPSS
0.13% (33rd 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 Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DEBIAN9-RUBYRAILSHTMLSANITIZER-365088
  • 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)

How to fix?

There is no fixed version for Debian:9 ruby-rails-html-sanitizer.

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:9 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.

CVSS Base Scores

version 3.1