Loading...
Skip to main content

CVE-2020-11022 — Potential XSS vulnerability in components/jquery...

MEDIUM

Potential XSS vulnerability in jQuery

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

Summary

### Impact 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. ### Patches This problem is patched in jQuery 3.5.0. ### Workarounds To workaround the issue without upgrading, adding the following to your code: ```js jQuery.htmlPrefilter = function( html ) { return html; }; ``` You need to use at least jQuery 1.12/2.2 or newer to be able to apply this workaround. ### References https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/ https://jquery.com/upgrade-guide/3.5/ ### 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 (2357 days ago).
  • Last revised September 10, 2026 — 2324 days after initial 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"
Composer
Update athlon1600/youtube-downloader to 4.0.1 or later
composer require "athlon1600/youtube-downloader:^4.0.1"
Composer
Update maximebf/debugbar to 1.19.0 or later
composer require "maximebf/debugbar:^1.19.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
NuGet
Update jquery to 3.5.0 or later
dotnet add package jquery --version 3.5.0

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (7)

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

PackageEcosystemAffectedFixed In
components/jquery
packagist
1.12.0, 1.12.1, 1.12.4, 2.0.0 (+17 more)3.5.0
athlon1600/youtube-downloader
packagist
v1.0.0, v1.0.1, v2.0.0, v2.0.1 (+18 more)4.0.1
maximebf/debugbar
packagist
1.0, 1.0.1, 1.0.2, 1.0.3 (+56 more)1.19.0
jquery
npm
All versions3.5.0
org.webjars.npm:jquery
maven
1.12.1, 1.12.2, 1.12.3, 1.12.4 (+23 more)3.5.0
jquery-rails
rubygems
0.1.1, 0.1.2, 0.1.3, 0.2 (+70 more)4.4.0
jquery
nuget
1.12.0, 1.12.1, 1.12.2, 1.12.3 (+24 more)3.5.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

References

Frequently Asked Questions

What is CVE-2020-11022?
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-11022?
CVE-2020-11022 affects components/jquery, athlon1600/youtube-downloader and maximebf/debugbar (and 3 more). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2020-11022 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
6.9

Exploitation requires specific conditions or has limited impact. Remediate within weeks.

Also Known As

GHSA-gxr4-xjj5-5px2
BIT-drupal-2020-11022

Related CVEs

Check if you're affected

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

Scan Your Dependencies