Cross-site Scripting (XSS) Affecting rails-html-sanitizer package, versions <1.0.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (36th 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-RUBY-RAILSHTMLSANITIZER-22025
  • published27 Mar 2018
  • disclosed22 Mar 2018
  • creditKaarlo Haikonen

Introduced: 22 Mar 2018

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

How to fix?

Upgrade rails-html-sanitizer to version 1.0.4 or higher.

Overview

rails-html-sanitizer

Affected versions of this package are vulnerable to Cross-site Scripting (XSS). 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.

Details

<>

CVSS Scores

version 3.1