VDB
Sign up
MEDIUM6.1

GHSA-rmxg-73gg-4p98

Cross-Site Scripting (XSS) in jquery

Quick fix

GHSA-rmxg-73gg-4p98 — jquery: upgrade to the fixed version with the command below.

npm install jquery@1.12.2

Details

Affected versions of `jquery` interpret `text/javascript` responses from cross-origin ajax requests, and automatically execute the contents in `jQuery.globalEval`, even when the ajax request doesn't contain the `dataType` option.

## Recommendation

Update to version 3.0.0 or later.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/jquery
Introduced in: 0Fixed in: 1.12.2
Fixnpm install jquery@1.12.2
NuGet/jQuery
Introduced in: 0Fixed in: 1.12.2
Fixdotnet add package jQuery --version 1.12.2
NuGet/jQuery
Introduced in: 1.12.3Fixed in: 3.0.0
Fixdotnet add package jQuery --version 3.0.0
npm/jquery
Introduced in: 1.12.3Fixed in: 3.0.0
Fixnpm install jquery@3.0.0
RubyGems/jquery-rails
Introduced in: 0Fixed in: 4.2.0
Fixbundle update jquery-rails
Maven/org.webjars.npm:jquery
Introduced in: 0Fixed in: 1.12.2
Fix# pom.xml: bump <version>1.12.2</version> for org.webjars.npm:jquery
Maven/org.webjars.npm:jquery
Introduced in: 1.12.3Fixed in: 3.0.0
Fix# pom.xml: bump <version>3.0.0</version> for org.webjars.npm:jquery

References