Skip to main content

CVE-2020-11023 — Potential XSS vulnerability in components/jquery

MEDIUM
Actively Exploited

Potential XSS vulnerability in jQuery

Published April 29, 2020Updated September 10, 2026Source: OSV

What Should I Do?

Patch Immediately

This vulnerability is confirmed under active exploitation (CISA KEV). Patch within 24-48 hours if possible.

Does your project use an affected components/jquery version?

Paste your composer.lock to check it for CVE-2020-11023 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my composer.lock

Summary

Impact

Passing HTML containing <option> elements from untrusted sources - even after sanitizing them - to one of jQuery's DOM manipulation methods (i.e. .html(), .append(), and others) may execute untrusted code.

Patches

This problem is patched in jQuery 3.5.0.

Workarounds

To workaround this issue without upgrading, use DOMPurify with its SAFE_FOR_JQUERY option to sanitize the HTML string before passing it to a jQuery method.

References

https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/

For more information

If you have any questions or comments about this advisory, search for a relevant issue in the jQuery repo. If you don't find an answer, open a new issue.

Advisory Timeline

  • First published April 29, 2020 (2402 days ago).
  • Last revised September 10, 2026 — 2324 days after initial publication.
  • Added to CISA's Known Exploited Vulnerabilities catalog 1729 days after publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update components/jquery to 3.5.0 or later
composer require "components/jquery:^3.5.0"
NuGet
Update jQuery to 3.5.0 or later
dotnet add package jQuery --version 3.5.0
npm
Update jquery to 3.5.0 or later
npm install jquery@3.5.0
Maven
Update org.webjars.npm:jquery to 3.5.0 or later
<!-- Update pom.xml dependency version to 3.5.0 for org.webjars.npm:jquery -->
Bundler
Update jquery-rails to 4.4.0 or later
gem install jquery-rails -v 4.4.0

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (5)

Affects 5 ecosystems: Maven (1), npm (1), NuGet (1), Packagist (1), RubyGems (1).

PackageFixed In
components/jquery Packagist · Affected: 1.10.0, 1.10.1, 1.10.2, 1.11.0 (+27 more)3.5.0
jQuery NuGet · Affected: 1.10.0, 1.10.0.1, 1.10.1, 1.10.2 (+54 more)3.5.0
jquery npm · Affected: All versions3.5.0
org.webjars.npm:jquery Maven · Affected: 1.11.0, 1.11.1, 1.11.3, 1.12.1 (+31 more)3.5.0
jquery-rails RubyGems · Affected: 0.1.1, 0.1.2, 0.1.3, 0.2 (+70 more)4.4.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 6.9 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N/E:H

References

Frequently Asked Questions

What is CVE-2020-11023?
Potential XSS vulnerability in jQuery. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.9/10).
How do I check if my project is affected by CVE-2020-11023?
CVE-2020-11023 affects components/jquery, jQuery and jquery (and 2 more). It has a 84.9% probability of exploitation within 30 days (EPSS score). This vulnerability is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, meaning it is being actively exploited in the wild. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2020-11023 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
6.9

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
84.89%
EPSS percentile: 99.8

This places it in the top 5% of EPSS-scored vulnerabilities — 99.8% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.

Known Exploited Vulnerability

This vulnerability is in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild.

Added to KEV catalog: January 23, 2025

Remediation deadline: February 13, 2025

Also Known As

GHSA-jpcq-cgw6-v4j6
BIT-drupal-2020-11023

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock