Cross-site Scripting (XSS) Affecting org.webjars:jquery package, versions [1.2.0 ,3.5.0)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

Exploit Maturity
Mature
EPSS
8.76% (95th 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-JAVA-ORGWEBJARS-567882
  • published29 Apr 2020
  • disclosed29 Apr 2020
  • creditMasato Kinugawa

Introduced: 29 Apr 2020

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

How to fix?

Upgrade org.webjars:jquery to version 3.5.0 or higher.

Overview

org.webjars:jquery is a JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.

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

CVSS Scores

version 3.1