Medium

Cross-Site Scripting in jquery

  • Disclosed: 20.05.2020
  • Updated: 11.10.2026 11:23

Versions of jquery prior to 1.9.0 are vulnerable to Cross-Site Scripting. The load method fails to recognize and remove <script> HTML tags that contain a whitespace character, i.e: </script >, which results in the enclosed script logic to be executed. This allows attackers to execute arbitrary JavaScript in a victim's browser.

Recommendation

Upgrade to version 1.9.0 or later.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.webjars.npm:jquery >= 1.2.1, < 1.9.0 1.9.0
npm package jquery >= 1.2.1, < 1.9.0 1.9.0
.NET (NuGet) jQuery >= 1.2.1, < 1.9.0 1.9.0

References

CVSS score 6.1/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness (CWE)
CWE-79
Platform
Java / Kotlin (Maven), npm, .NET (NuGet)
Package
org.webjars.npm:jquery, jquery, jQuery
Disclosed
20.05.2020
Updated
11.10.2026 11:23

Sources and licenses

OSV / GitHub Advisory Database - GHSA-q4m3-2j7h-f7xw - CC BY 4.0

Vulnerability history: jquery

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
8
First → latest
01.2018 05.2022
Without a fix
0
Exploited in attacks
1

Severity breakdown

  • High 1
  • Medium 7

Disclosures per year

  1. 2018: 2
  2. 2019: 1
  3. 2020: 4
  4. 2021: 0
  5. 2022: 1
  6. 2023: 0
  7. 2024: 0
  8. 2025: 0
  9. 2026: 0
  1. Medium CVE-2011-4969 < 1.6.3 1.6.3
  2. Medium · 6.1 CVE-2012-6708 < 1.9.0 1.9.0
  3. Cross-Site Scripting in jquery this entry
    Medium · 6.1 CVE-2020-7656 >= 1.2.1, < 1.9.0 1.9.0
  4. Medium · 6.5 Exploited in attacks CVE-2020-11023 >= 1.0.3, < 3.5.0 3.5.0
  5. Medium · 6.9 CVE-2020-11022 >= 1.12.0, < 3.5.0 3.5.0
  6. Medium · 6.1 CVE-2019-11358 >= 1.1.4, < 3.4.0 3.4.0
  7. High · 7.5 CVE-2016-10707 >= 3.0.0-rc.1, < 3.0.0 3.0.0
  8. Medium · 6.1 CVE-2015-9251 < 1.12.2, >= 1.12.3, < 3.0.0 1.12.2, 3.0.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.