Cross-site Scripting (XSS) Affecting jquery-rails package, versions <4.4.0


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

Exploit Maturity
Mature
EPSS
4.35% (93rd 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-JQUERYRAILS-565439
  • published13 Apr 2020
  • disclosed10 Apr 2020
  • creditMasato Kinugawa

Introduced: 10 Apr 2020

CVE-2020-11023  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade jquery-rails to version 4.4.0 or higher.

Overview

jquery-rails is a gem provides jQuery and the jQuery-ujs driver for your Rails 4+ application.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) Passing HTML containing <option> elements from untrusted sources - even after sanitizing it - to one of jQuery's DOM manipulation methods (i.e. .html(), .append(), and others) may execute untrusted code.

NOTE: This vulnerability was also assigned CVE-2020-23064.

Details

CVSS Scores

version 3.1