Loading...
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.

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](https://github.com/cure53/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](https://github.com/jquery/jquery/issues). If you don't find an answer, open a new issue.

Advisory Timeline

  • First published April 29, 2020 (2356 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, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (5)

Affects 5 ecosystems: maven (1), npm (1), nuget (1), packagist (1), rubygems (1).

PackageEcosystemAffectedFixed In
components/jquery
packagist
1.10.0, 1.10.1, 1.10.2, 1.11.0 (+27 more)3.5.0
jQuery
nuget
1.10.0, 1.10.0.1, 1.10.1, 1.10.2 (+54 more)3.5.0
jquery
npm
All versions3.5.0
org.webjars.npm:jquery
maven
1.11.0, 1.11.1, 1.11.3, 1.12.1 (+31 more)3.5.0
jquery-rails
rubygems
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). 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 has limited impact. Remediate within weeks.

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 if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies