CVE-2020-11023: JQuery Cross-Site Scripting (XSS)
JQuery · listed in the CISA catalog of actively exploited vulnerabilities since 2025-01-23.
- CVSS v3.1 (CVE record)
- 6.1
- medium
- EPSS (exploit probability, 30 days)
- 85%
- higher than 99.7% of all CVEs
- Added to CISA KEV
- 2025-01-23
- US federal due date 2025-02-13
- Ubuntu priority
- high
CVE-2020-11023 explained
CVE-2020-11023 is a cross-site scripting flaw in jQuery from version 1.0.3 up to, but not including, 3.5.0. Passing HTML that contains option elements from untrusted sources to jQuery DOM manipulation methods may execute untrusted code, even after sanitizing. It is listed in the CISA Known Exploited Vulnerabilities catalog, and Ubuntu rates its priority as high.
Impact
An attacker can cause untrusted script code to run in a user's browser in the context of a web application that uses an affected jQuery version. The attack works over the network, needs no privileges and has low complexity, but a user must interact, for example by loading a crafted page. The scope is changed. Impact is limited to low confidentiality and integrity loss, with no availability impact. Applications that insert untrusted HTML through jQuery DOM methods are at risk.
Who is affected
Ubuntu 20.04 LTS (jquery) has a fix in the standard archive: 3.3.1~dfsg-3ubuntu0.1. Ubuntu 18.04 LTS (jquery, 3.2.1-1ubuntu0.1~esm1), Ubuntu 16.04 LTS (drupal7, 7.44-1ubuntu1~16.04.0+esm3) and Ubuntu 14.04 LTS (drupal7, 7.26-1ubuntu0.1+esm3) have fixes only through Ubuntu Pro (ESM). Debian 14 (forky), a testing distribution, has znc fixed in 1.10.3-1. Debian 12 (bookworm) and Debian 13 (trixie) have no fix for znc; Debian rates it unimportant.
Written with AI from the data on this page and checked against it automatically.
Official description
In jQuery versions greater than or equal to 1.0.3 and before 3.5.0, passing HTML containing <option> elements 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.
CISA required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
CISA notes
- This vulnerability could affect an open-source component, third-party library, protocol, or proprietary implementation that could be used by different products. For more information, please see: github.com/jquery/jquery/security/advisories/GHSA-jpcq-cg…
- blog.jquery.com/2020/04/10/jquery-3-5-0-released
- nvd.nist.gov/vuln/detail/CVE-2020-11023
Upstream versions (CVE record)
From the CVE record published by the vendor or CVE numbering authority.
- jQueryAffectedFixed in
- ≥ 1.0.3
- < 3.5.0
not stated
| Product | Affected | Fixed in |
|---|---|---|
| jQuery |
| not stated |
Ubuntu and Debian releases
A server is vulnerable if it has a package built from the listed source package installed in a version lower than the fixed version for its release.
Ubuntu 20.04 LTS·jquery
Fixed: 3.3.1~dfsg-3ubuntu0.1
Ubuntu 18.04 LTS·jquery
fix via Ubuntu Pro
Fixed: 3.2.1-1ubuntu0.1~esm1
Ubuntu 16.04 LTS·drupal7
fix via Ubuntu Pro
Fixed: 7.44-1ubuntu1~16.04.0+esm3
Ubuntu 14.04 LTS·drupal7
fix via Ubuntu Pro
Fixed: 7.26-1ubuntu0.1+esm3
testing distribution
Fixed: 1.10.3-1
Status: Debian: minor issue, no fix planned
Status: Debian: minor issue, no fix planned
What to do
- Identify systems with the
jquery,drupal7orzncpackages installed, and web applications that bundle their own jQuery copy. - On Ubuntu 20.04 LTS, update
jqueryto3.3.1~dfsg-3ubuntu0.1or later from the standard archive. - On Ubuntu 18.04, 16.04 and 14.04 LTS, enable Ubuntu Pro (ESM) and install the fixed
jqueryordrupal7versions. - Plan upgrades of end-of-life Ubuntu 14.04 LTS and 16.04 LTS systems to a supported release.
- Update application-bundled jQuery copies to 3.5.0 or later, then restart or redeploy affected web services and clear caches.
Debian 12 (bookworm) and Debian 13 (trixie) have no planned fix for znc, as Debian rates it unimportant. Limit network access to the ZNC web interface to trusted users and networks. Avoid opening links or pages from untrusted sources in the web interface session. Monitor Debian advisories for changes in status.
Written with AI from the data on this page and checked against it automatically.
Check and fix on a server
Run on each Ubuntu or Debian server. Replace jquery with the source package from the table above (this CVE affects 3 source packages).
1. Show installed packages built from the source package, with their versions
dpkg-query -W -f='${binary:Package} ${Version} ${source:Package}\n' | awk '$3=="jquery"'2. Compare each installed version with the fixed version for your release from the table (releases with a fixed version only)
I=INSTALLED_VERSION; F=FIXED_VERSION # replace both
dpkg --compare-versions "$I" lt "$F"; case $? in 0) echo vulnerable ;; 1) echo "fixed or newer" ;; *) echo "check the versions" ;; esac3. Install the fix
sudo apt update && sudo apt install --only-upgrade $(dpkg-query -W -f='${binary:Package} ${source:Package}\n' | awk '$2=="jquery"{print $1}')Services keep running the old code until they are restarted – restart the affected service or check with needrestart.
No fixed version yet on 2 releases
Debian 13 (trixie), Debian 12 (bookworm): no fixed version of the affected packages yet, so every installed version there is affected. Until a fix is published:
- Follow the vendor's advisory for a mitigation or patch: jquery.com/upgrade-guide/3.5
- If the server does not need the package, remove it, or replace it with a maintained alternative.
- Restrict exposure: keep the affected service off the internet, limit access with a firewall or VPN, and turn off the vulnerable feature where you can.
This page updates automatically when Ubuntu or Debian publish a fix.
Rows marked “fix via Ubuntu Pro”: these fixes are only installable with an Ubuntu Pro subscription (ESM). Attach the machine first (sudo pro attach, then sudo pro enable esm-infra esm-apps), then run the commands above.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- No – each attack needs manual steps
- Technical impact
- Partial – limited control or information
Weakness: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Questions about CVE-2020-11023
- Why is a medium CVSS score paired with high urgency?
- The flaw is in the CISA Known Exploited Vulnerabilities catalog, meaning exploitation has been observed, and Ubuntu rates its priority as high. CISA set a US federal due date of 2025-02-13 to apply vendor mitigations or discontinue use.
- Does sanitizing HTML before passing it to jQuery protect me?
- No. According to the description, untrusted HTML containing option elements may execute code even after sanitizing when passed to jQuery DOM manipulation methods. Upgrading to jQuery 3.5.0 or a patched distribution package is the fix.
- Do I need Ubuntu Pro to get the fix?
- Only on Ubuntu 18.04, 16.04 and 14.04 LTS, where fixes are delivered through Ubuntu Pro (ESM). The Ubuntu 20.04 LTS fix for
jqueryis in the standard archive.
Written with AI from the data on this page and checked against it automatically.
References
Vendor
Other advisories
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.