Cross-site Scripting (XSS) Affecting rails-html-sanitizer package, versions < 1.0.3, >= 1.0.2


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.3% (71st 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-20254
  • published24 Jan 2016
  • disclosed24 Jan 2016
  • creditArthur Neves, Spyros Livathinos

Introduced: 24 Jan 2016

CVE-2015-7579  (opens in a new tab)
CWE-79  (opens in a new tab)

Overview

rails-html-sanitizer is an HTML sanitization gem for Rails applications.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in Rails::Html::FullSanitizer used by Action View's strip_tags. Due to the way it is implemented, if an attacker passes an already escaped HTML entity to the input of Action View's strip_tags these entities will be unescaped, what may cause a Cross-site Scripting attack if it used in combination with raw or html_safe.

Details

<>

CVSS Scores

version 3.1