# Potential XSS vulnerability in jQuery (Medium 6.9)

☕

☕ Maven📦 npm.NET NuGet🐘 Packagist💎 RubyGems

Not in CISA KEV

MEDIUM severity

# Potential XSS vulnerability in jQueryGHSA-gxr4-xjj5-5px2

MEDIUM [Fix: jquery/jquery@1d61fd9](https://github.com/jquery/jquery/commit/1d61fd9407e6fbe82fe55cb0b938307aa0791f77)

GHSA-gxr4-xjj5-5px2 is a medium-severity (CVSS 6.9) Cross-site Scripting (XSS) vulnerability in org.webjars.npm:jquery. 8 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available for org.webjars.npm:jquery — see the affected versions and patch details below.

Also known asBIT-drupal-2020-11022[CVE-2020-11022](/vulnerability/CVE-2020-11022)

Published

Apr 29, 2020

Updated

Sep 10, 2026

Affected

7 pkgs

Patched

7 / 7

Exploits

8 known

Exploitation data as of Nov 21, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

## Exploitation Status

### No confirmed exploitation observed yet

-   CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for GHSA-gxr4-xjj5-5px2.

## EPSS Exploitation Probability

[via FIRST.org ↗](https://www.first.org/epss/)

99.2%probability of exploitation in next 30 days

Very High Risk0.00%

Lower risk than most CVEs100th percentile — riskier than 100% of all scored CVEsHighest risk

0.00%33.3%66.7%100.0%7.0%99.2%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from [FIRST.org EPSS](https://www.first.org/epss/).

## How urgent is this, really

## Where this sits among everything scored

## Real-World Exposure

7 pkgs affected

How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.

22Kother npm packages depend on this — each one inherits the vulnerability until it's patched upstream

`jquery`npm

18.5Mdownloads / week

## Description

#### 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:

```
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://blog.jquery.com/2020/04/10/jquery-3-5-0-released/) [https://jquery.com/upgrade-guide/3.5/](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.

## Affected Packages

7 total 7 fixed

Ecosystem

Package

Vulnerable range

Fix

☕Maven

`org.webjars.npm:jquery` 

≥ 1.12.0&&< 3.5.0

3.5.0`org.webjars.npm:jquery:3.5.0`

📦npm

`jquery` 

≥ 1.12.0&&< 3.5.0

3.5.0`npm install jquery@3.5.0`

.NETNuGet

`jquery` 

≥ 1.12.0&&< 3.5.0

3.5.0`dotnet add package jquery --version 3.5.0`

🐘Packagist

`maximebf/debugbar` 

all versions

1.19.0`composer require maximebf/debugbar:^1.19.0`

🐘Packagist

`athlon1600/youtube-downloader` 

all versions

4.0.1`composer require athlon1600/youtube-downloader:^4.0.1`

🐘Packagist

`components/jquery` 

≥ 1.12.0&&< 3.5.0

3.5.0`composer require components/jquery:^3.5.0`

## Affected Products

70 products · 198 configurations

OS

`debian linux`debian

1 version

9.0

Application

`drupal`drupal

≥ 8.8.0 && < 8.8.6

range

OS

`fedora`fedoraproject

3 versions

313233

Application

`jquery`jquery

≥ 1.2 && < 3.5.0

range

OS

`h300e firmware`netapp

all

OS

`h300s firmware`netapp

all

Exploits & PoCs

8

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

EDB-49766webappsmultiple

jQuery 1.2 - Cross-Site Scripting (XSS)

by Central InfoSec · Apr 14, 2021

[Exploit-DB](https://www.exploit-db.com/exploits/49766) [Source](https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/multiple/webapps/49766.txt)

## Detection & mitigation playbook

Open-source dependency

1.  ### Detect
    
    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.webjars.npm:jquery, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
    
2.  ### Fix
    
    Update org.webjars.npm:jquery to 3.5.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-gxr4-xjj5-5px2 is resolved across your whole dependency graph.
    
3.  ### Workarounds
    
    Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
    

## Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate

No supported release of Red Hat OpenStack Platform is affected by this vulnerability as no shipped packages contain the vulnerable code.

Product

Fixed in

Advisory

A-MQ Interconnect 1.y for RHEL 6

`qpid-dispatch-0:1.13.0-3.el6_10`

[RHSA-2020:4211](https://access.redhat.com/errata/RHSA-2020:4211)

Openshift Service Mesh 1.0

`jaeger-0:v1.13.1.redhat7-1.el7`

[RHSA-2020:2362](https://access.redhat.com/errata/RHSA-2020:2362)

Red Hat Ansible Tower 3.6 for RHEL 7

`ansible-tower-36/ansible-tower:3.6.7-1`

[RHSA-2021:0778](https://access.redhat.com/errata/RHSA-2021:0778)

Red Hat Ansible Tower 3.7 for RHEL 7

`ansible-tower-37/ansible-tower-rhel7:3.7.4-1`

[RHSA-2020:5249](https://access.redhat.com/errata/RHSA-2020:5249)

Red Hat Enterprise Linux 7

`ipa-0:4.6.8-5.el7`

[RHSA-2020:3936](https://access.redhat.com/errata/RHSA-2020:3936)

Red Hat Enterprise Linux 8

`idm:client-8030020200923172426.05ac3f11`

[RHSA-2020:4670](https://access.redhat.com/errata/RHSA-2020:4670)

Red Hat Enterprise Linux 8

`pki-core:10.6-8030020200911215836.5ff1562f`

[RHSA-2020:4847](https://access.redhat.com/errata/RHSA-2020:4847)

Red Hat JBoss Enterprise Application Platform 7.4.9

`org.jboss.hal/hal-console:3.3.16.Final-redhat-00001`

[RHSA-2023:0556](https://access.redhat.com/errata/RHSA-2023:0556)

UbuntuMEDIUM

[USN-7246-1Ubuntu](https://ubuntu.com/security/notices/USN-7246-1)[USN-7622-1Ubuntu](https://ubuntu.com/security/notices/USN-7622-1)[USN-7658-1Ubuntu](https://ubuntu.com/security/notices/USN-7658-1)

## Frequently Asked Questions

\### 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-gu

O3 Security · Impact-Aware SCA

### Is GHSA-gxr4-xjj5-5px2 in your dependencies?

Find it across Maven, npm, NuGet, including transitive dependencies.

[Scan my dependencies](/book-demo) [How O3 SCA works](/impact-aware-sca)