CVE-2020-11022
jQuery has a potential XSS vulnerability
Also known as BIT-drupal-2020-11022, EDB-49766, GHSA-gxr4-xjj5-5px2
Mitigation
- Upgrade jquery to 3.5.0 or later.
- Upgrade jquery-rails to 4.4.0 or later.
- Upgrade org.webjars.npm:jquery to 3.5.0 or later.
- Upgrade maximebf/debugbar to 1.19.0 or later.
- Upgrade athlon1600/youtube-downloader to 4.0.1 or later.
- Upgrade components/jquery to 3.5.0 or later.
Who should check
- Projects that depend on npm package jquery (>= 1.12.0, < 3.5.0)
- Projects that depend on NuGet package jquery (>= 1.12.0, < 3.5.0)
- Projects that depend on RubyGems package jquery-rails (< 4.4.0)
- Projects that depend on Maven package org.webjars.npm:jquery (>= 1.12.0, < 3.5.0)
- Projects that depend on Packagist package maximebf/debugbar (< 1.19.0)
- Projects that depend on Packagist package athlon1600/youtube-downloader (< 4.0.1)
- Projects that depend on Packagist package components/jquery (>= 1.12.0, < 3.5.0)
- Anyone running jQuery >= 1.12.0, < 3.5.0
Vulnerability facts
- Affected
- jquery >= 1.12.0, < 3.5.0; jquery >= 1.12.0, < 3.5.0; jquery-rails < 4.4.0; org.webjars.npm:jquery >= 1.12.0, < 3.5.0; maximebf/debugbar < 1.19.0; athlon1600/youtube-downloader < 4.0.1; components/jquery >= 1.12.0, < 3.5.0
- Fixed in
- 3.5.0, 4.4.0, 1.19.0, 4.0.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.9 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: Low
- Availability impact: None
- EPSS
- 99.22% chance of exploitation in 30 days (percentile 100, 2026-11-26)
- CWE
- CWE-79
- Modified
Description
In jQuery starting with 1.12.0 and before 3.5.0, 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. This problem is patched in jQuery 3.5.0.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm jquery | >= 1.12.0, < 3.5.0 | 3.5.0 | osv |
| NuGet jquery | >= 1.12.0, < 3.5.0 | 3.5.0 | osv |
| RubyGems jquery-rails | < 4.4.0 | 4.4.0 | osv |
| Maven org.webjars.npm:jquery | >= 1.12.0, < 3.5.0 | 3.5.0 | osv |
| Packagist maximebf/debugbar | < 1.19.0 | 1.19.0 | osv |
| Packagist athlon1600/youtube-downloader | < 4.0.1 | 4.0.1 | osv |
| Packagist components/jquery | >= 1.12.0, < 3.5.0 | 3.5.0 | osv |
| jQuery | >= 1.12.0, < 3.5.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2020-11022. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2020-11022.md Affected: jquery >= 1.12.0, < 3.5.0; jquery >= 1.12.0, < 3.5.0; jquery-rails < 4.4.0; org.webjars.npm:jquery >= 1.12.0, < 3.5.0; maximebf/debugbar < 1.19.0; athlon1600/youtube-downloader < 4.0.1; components/jquery >= 1.12.0, < 3.5.0 Fixed in: 3.5.0, 4.4.0, 1.19.0, 4.0.1 Steps: 1. Search this machine and project for jquery (npm), jquery (NuGet), jquery-rails (RubyGems), org.webjars.npm:jquery (Maven), maximebf/debugbar (Packagist), athlon1600/youtube-downloader (Packagist): dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://github.com/jquery/jquery/security/advisories/GHSA-gxr4-xjj5-5px2
- https://security.gentoo.org/glsa/202007-03
- https://www.debian.org/security/2020/dsa-4693
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VOE7P7APPRQKD4FGNHBKJPDY6FFCOH3W/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QPN2L2XVQGUA2V5HNQJWHK3APSK3VN7K/
- https://jquery.com/upgrade-guide/3.5/
- https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/
- http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00067.html
- http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00085.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SFP4UK4EGP4AFH2MWYJ5A5Z4I7XVFQ6B/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AVKYXLWCLZBV2N7M46KYK4LVA5OXWPBY/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SAPQVX3XDNPGFT26QAQ6AJIXZZBZ4CD4/
- http://lists.opensuse.org/opensuse-security-announce/2020-11/msg00039.html
- https://nvd.nist.gov/vuln/detail/CVE-2020-11022
Patches
- https://github.com/jquery/jquery/commit/1d61fd9407e6fbe82fe55cb0b938307aa0791f77
- https://github.com/maximebf/php-debugbar/commit/847216e60544258c881f2733d699bbcfeefac0fc
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://www.oracle.com//security-alerts/cpujul2021.html
Exploits and PoCs
Other
- https://github.com/maximebf/php-debugbar/issues/447
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VOE7P7APPRQKD4FGNHBKJPDY6FFCOH3W
- https://lists.opensuse.org/opensuse-security-announce/2020-07/msg00067.html
- https://lists.opensuse.org/opensuse-security-announce/2020-07/msg00085.html
- https://lists.opensuse.org/opensuse-security-announce/2020-11/msg00039.html
- https://www.drupal.org/sa-core-2020-002
- https://www.oracle.com/security-alerts/cpujan2021.html
- https://www.oracle.com/security-alerts/cpujul2020.html
- https://www.oracle.com/security-alerts/cpujul2021.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://www.oracle.com/security-alerts/cpuoct2020.html
- https://www.tenable.com/security/tns-2020-10
- https://www.tenable.com/security/tns-2020-11
- https://www.tenable.com/security/tns-2021-02
- https://www.tenable.com/security/tns-2021-10
- https://blog.jquery.com/2020/04/10/jquery-3-5-0-released
- https://github.com/jquery/jquery/releases/tag/3.5.0
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-rails/CVE-2020-11022.yml
- https://jquery.com/upgrade-guide/3.5
- https://lists.apache.org/thread.html/r0483ba0072783c2e1bfea613984bfb3c86e73ba8879d780dc1cc7d36@%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/r49ce4243b4738dd763caeb27fa8ad6afb426ae3e8c011ff00b8b1f48@%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/r54565a8f025c7c4f305355fdfd75b68eca442eebdb5f31c2e7d977ae@%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/r564585d97bc069137e64f521e68ba490c7c9c5b342df5d73c49a0760@%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/r706cfbc098420f7113968cc377247ec3d1439bce42e679c11c609e2d@%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/r8f70b0f65d6bedf316ecd899371fd89e65333bc988f6326d2956735c@%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/rbb448222ba62c430e21e13f940be4cb5cfc373cd3bce56b48c0ffa67@%3Cdev.flink.apache.org%3E
- https://lists.apache.org/thread.html/rdf44341677cf7eec7e9aa96dcf3f37ed709544863d619cca8c36f133@%3Ccommits.airflow.apache.org%3E
- https://lists.apache.org/thread.html/re4ae96fa5c1a2fe71ccbb7b7ac1538bd0cb677be270a2bf6e2f8d108@%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/rede9cfaa756e050a3d83045008f84a62802fc68c17f2b4eabeaae5e4@%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/ree3bd8ddb23df5fa4e372d11c226830ea3650056b1059f3965b3fce2@%3Cissues.flink.apache.org%3E
- https://lists.debian.org/debian-lts-announce/2021/03/msg00033.html
- https://lists.debian.org/debian-lts-announce/2023/08/msg00040.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AVKYXLWCLZBV2N7M46KYK4LVA5OXWPBY
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QPN2L2XVQGUA2V5HNQJWHK3APSK3VN7K
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SAPQVX3XDNPGFT26QAQ6AJIXZZBZ4CD4
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SFP4UK4EGP4AFH2MWYJ5A5Z4I7XVFQ6B
- http://security.netapp.com/advisory/ntap-20200511-0006
- https://security.netapp.com/advisory/ntap-20200511-0006/
- https://lists.apache.org/thread.html/rdf44341677cf7eec7e9aa96dcf3f37ed709544863d619cca8c36f133%40%3Ccommits.airflow.apache.org%3E
- https://lists.apache.org/thread.html/r706cfbc098420f7113968cc377247ec3d1439bce42e679c11c609e2d%40%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/rbb448222ba62c430e21e13f940be4cb5cfc373cd3bce56b48c0ffa67%40%3Cdev.flink.apache.org%3E
- https://lists.apache.org/thread.html/r49ce4243b4738dd763caeb27fa8ad6afb426ae3e8c011ff00b8b1f48%40%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/r8f70b0f65d6bedf316ecd899371fd89e65333bc988f6326d2956735c%40%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/r564585d97bc069137e64f521e68ba490c7c9c5b342df5d73c49a0760%40%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/ree3bd8ddb23df5fa4e372d11c226830ea3650056b1059f3965b3fce2%40%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/rede9cfaa756e050a3d83045008f84a62802fc68c17f2b4eabeaae5e4%40%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/r54565a8f025c7c4f305355fdfd75b68eca442eebdb5f31c2e7d977ae%40%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/re4ae96fa5c1a2fe71ccbb7b7ac1538bd0cb677be270a2bf6e2f8d108%40%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/r0483ba0072783c2e1bfea613984bfb3c86e73ba8879d780dc1cc7d36%40%3Cissues.flink.apache.org%3E
- https://github.com/Athlon1600/youtube-downloader/releases/tag/v4.0.1
- https://github.com/jquery/jquery
FAQ
Is CVE-2020-11022 being exploited?
There is no confirmed exploitation: CVE-2020-11022 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 99.22% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2020-11022?
Medium: CVSS 6.9 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2020-11022?
jquery >= 1.12.0, < 3.5.0; jquery >= 1.12.0, < 3.5.0; jquery-rails < 4.4.0; org.webjars.npm:jquery >= 1.12.0, < 3.5.0; maximebf/debugbar < 1.19.0; athlon1600/youtube-downloader < 4.0.1; components/jquery >= 1.12.0, < 3.5.0.
Is there a fix for CVE-2020-11022?
Yes. Fixed in 3.5.0, 4.4.0, 1.19.0, 4.0.1. Upgrade jquery to 3.5.0 or later. Upgrade jquery-rails to 4.4.0 or later. Upgrade org.webjars.npm:jquery to 3.5.0 or later. Upgrade maximebf/debugbar to 1.19.0 or later. Upgrade athlon1600/youtube-downloader to 4.0.1 or later. Upgrade components/jquery to 3.5.0 or later.
How do I check if I'm affected by CVE-2020-11022?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.