CVE-2020-7656: Cross-Site Scripting in jquery

jquery Updated 02 Oct 2025

Summary

20/05/2020
Yes i
Moderate
6.1

CVE-2020-7656: Cross-Site Scripting in jquery. Affects jquery versions >= 1.2.1, < 1.9.0. Fixed in 1.9.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The jquery package is a popular JavaScript library that simplifies HTML document traversal, event handling, and animation. It is widely used in web development projects to enhance user experience and streamline client-side scripting. However, versions prior to 1.9.0 are vulnerable to Cross-Site Scripting (XSS) attacks.

Vulnerability Detail

The vulnerability in jquery arises from the load method's failure to recognize and remove "<script>" HTML tags that contain a whitespace character, such as "</script >". This oversight allows attackers to execute arbitrary JavaScript code in a victim's browser. By injecting malicious scripts, an attacker can steal sensitive information, manipulate web content, or perform actions on behalf of the victim.

How To Fix

Minimum fixed version

1.9.0

This is the first release that contains the fix.

npm install jquery@1.9.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, developers can manually sanitize user input and ensure that any user-generated content is properly escaped before being rendered on the page. This can be achieved using security libraries or frameworks that provide built-in protection against XSS attacks.

Conclusion

In conclusion, the jquery package versions prior to 1.9.0 are vulnerable to Cross-Site Scripting (XSS) attacks. To mitigate this vulnerability, it is crucial to upgrade to version 1.9.0 or later. Additionally, developers should follow secure coding practices and sanitize user input to prevent XSS attacks. For further support and assistance in vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for jquery →

Share this vulnerability

FAQ

Cross-Site Scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users. These scripts can be used to steal sensitive information, manipulate web content, or perform actions on behalf of the victim.

If your application uses a version of the jquery package prior to 1.9.0, it is vulnerable to Cross-Site Scripting (XSS) attacks. Attackers can exploit this vulnerability to execute arbitrary JavaScript code in the browsers of your application's users, potentially leading to unauthorized access, data theft, or other malicious activities.

While specific exploits targeting this vulnerability may exist, they have not been disclosed in the provided information. However, it is crucial to address this vulnerability promptly to mitigate the risk of potential attacks.

Yes, the CVSS score for this vulnerability is 6.1, indicating a moderate severity level. It is important to prioritize the upgrade to a fixed version of the jquery package to protect your application and its users from potential attacks.

You can find more information about this vulnerability, including technical details and the recommended fix, in the vulnerability report provided by the GitHub Security Advisory Database. The report can be accessed at: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/05/GHSA-q4m3-2j7h-f7xw/GHSA-q4m3-2j7h-f7xw.json

Related vulnerabilities

Recent vulnerabilities recorded for jquery.

How To Fix

Minimum fixed version

1.9.0

This is the first release that contains the fix.

npm install jquery@1.9.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback