Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

jquery

Latest version: v4.1.0

Overview

Last scanned
17 Nov 2026
Published
17 Nov 2026
npm package Publisher: dmethvin, gibson042, mgol, openjsfoundation, timmywil
60,101 Stars
20,766 Forks
3 Versions
69.8M Downloads
JavaScript Repo language

Scan summary

jquery was last scanned on 17 Nov 2026 at version 4.1.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions; the latest 2 were published on 17 Nov 2026.
  • Findings: No rules fired in version 4.1.0.
  • Downloads: 69,837,770 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
4.1.0 LATEST 17 Nov 2026 No rules fired
3.8.0 17 Nov 2026 No rules fired
4.0.0 18 Jan 2026 Not shown

No rules fired in 4.1.0

Findings

Findings for v4.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 4.1.0; other versions have their own rules, not their own score.

Known vulnerabilities

10 CVEs · last 19 May 2020

0 CRITICAL 3 HIGH 7 MEDIUM 0 LOW

Versions

Version details are not available for this package.

Vulnerabilities

  • CVE-2020-7656 Medium 19 May 2020 jquery: Cross-site scripting (XSS) via <script> HTML tags containing whitespaces Fixed in 1.9.0
  • CVE-2020-11022 Medium 29 Apr 2020 jquery: Cross-site scripting due to improper injQuery.htmlPrefilter method Fixed in 3.5.0
  • CVE-2020-11023 Medium 29 Apr 2020 jquery: Untrusted code execution via <option> tag in HTML passed to DOM manipulation methods Fixed in 3.5.0
  • CVE-2019-11358 Medium 20 Apr 2019 jquery: Prototype pollution in object's prototype leading to denial of service, remote code execution, or property injection Fixed in 3.4.0
  • CVE-2016-10707 High 18 Jan 2018 Denial of Service in jquery Fixed in 3.0.0
  • CVE-2015-9251 Medium 18 Jan 2018 jquery: Cross-site scripting via cross-domain ajax requests Fixed in 1.12.2, 3.0.0
  • CVE-2012-6708 Medium 18 Jan 2018 js-jquery: XSS via improper selector detection Fixed in 1.9.0
  • CVE-2011-4969 Medium 8 Mar 2013 jquery: Cross-site scripting (XSS) via $(location.hash) and $(#<tag>) Fixed in 1.6.3
  • NSWG-ECO-329 High No date XSS via improper selector detection Fixed in 1.9.0
  • NSWG-ECO-328 High No date Cross-Site Scripting (XSS) Fixed in 3.0.0

Seal Security (npm)

Seal Security ships a patched build of this package. Its fixed versions:

  • CVE-2012-6708: 1.9.1-sp4p4
  • CVE-2015-9251: 1.12.4-sp2p2
  • CVE-2016-10707: 1.11.1-sp2, 1.12.4-sp3p3
  • CVE-2019-11358: 1.12.4-sp2p2
  • CVE-2020-11022: 1.11.1-sp3p3, 1.12.4-sp2p2, 1.9.1-sp2p2
  • CVE-2020-11023: 1.11.1-sp3p3
  • CVE-2020-7656: 1.9.1-sp4p4
  • SONATYPE-2013-0003: 1.9.1-sp3p3
  • SONATYPE-2014-0026: 1.12.4-sp3p3, 1.9.1-sp3p3
  • SONATYPE-2017-0506: 1.9.1-sp3p3

README

The publisher’s own README, as collected from the registry.

jQuery

jQuery is a fast, small, and feature-rich JavaScript library.

For information on how to get started and how to use jQuery, please see jQuery's documentation. For source files and issues, please visit the jQuery repo.

If upgrading, please see the blog post for 4.1.0. This includes notable differences from the previous version and a more readable changelog.

Including jQuery

Below are some of the most common ways to include jQuery.

Browser
Script tag
<script src="https://code.jquery.com/jquery-4.1.0.min.js"></script>

or, to use the jQuery ECMAScript module:

<script type="module">
    import { $ } from "https://code.jquery.com/jquery-4.1.0.module.min.js";
</script>

or:

<script type="module">
    import { jQuery } from "https://code.jquery.com/jquery-4.1.0.module.min.js";
</script>

All jQuery modules export named $ & jQuery tokens; the further examples will just show $. The default import also works:

<script type="module">
    import $ from "https://code.jquery.com/jquery-4.1.0.module.min.js";
</script>

However, named imports provide better interoperability across tooling and are therefore recommended.

Sometimes you don’t need AJAX, or you prefer to use one of the many standalone libraries that focus on AJAX requests. And often it is simpler to use a combination of CSS, class manipulation or the Web Animations API. Similarly, many projects opt into relying on native browser promises instead of jQuery Deferreds. Along with the regular version of jQuery that includes the ajax, callbacks, deferred, effects & queue modules, we’ve released a “slim” version that excludes these modules. You can load it as a regular script:

<script src="https://code.jquery.com/jquery-4.1.0.slim.min.js"></script>

or as a module:

<script type="module">
    import { $ } from "https://code.jquery.com/jquery-4.1.0.module.slim.min.js";
</script>
Import maps

To avoid repeating long import paths that change on each jQuery release, you can use import maps - they are now supported in every modern browser. Put the following script tag before any <script type="module">:

<script type="importmap">
    {
        "imports": {
            "jquery": "https://code.jquery.com/jquery-4.1.0.module.min.js",
            "jquery/slim": "https://code.jquery.com/jquery-4.1.0.module.slim.min.js"
        }
    }
</script>

Now, the following will work to get the full version:

<script type="module">
    import { $ } from "jquery";
    // Use $ here
</script>

and the following to get the slim one:

<script type="module">
    import { $ } from "jquery/slim";
    // Use $ here
</script>

The advantage of these specific mappings is they match the ones embedded in the jQuery npm package, providing better interoperability between the environments.

You can also use jQuery from npm even in the browser setup. Read along for more details.

Using jQuery from npm

There are several ways to use jQuery from npm. One is to use a build tool like Webpack, Browserify or Babel. For more information on using these tools, please refer to the corresponding project's documentation.

Another way is to use jQuery directly in Node.js. See the Node.js pre-requisites section for more details on the Node.js-specific part of this.

To install the jQuery npm package, invoke:

npm install jquery

In the script, including jQuery will usually look like this:

import { $ } from "jquery";

If you need to use jQuery in a file that's not an ECMAScript module, you can use the CommonJS syntax:

const $ = require( "jquery" );

The CommonJS module does not expose named $ & jQuery exports.

Individual modules

jQuery is authored in ECMAScript modules; it's also possible to use them directly. They are contained in the src/ folder; inspect the package contents to see what's there. Full file names are required, including the .js extension.

Be aware that this is an advanced & low-level interface, and we don't consider it stable, even between minor or patch releases - this is especially the case for modules in subdirectories or src/. If you rely on it, verify your setup before updating jQuery.

All top-level modules, i.e. files directly in the src/ directory export jQuery. Importing multiple modules will all attach to the same jQuery instance.

Remember that some modules have other dependencies (e.g. the event module depends on the selector one) so in some cases you may get more than you expect.

Example usage:

import { $ } from "jquery/src/css.js"; // adds the `.css()` method
import "jquery/src/event.js"; // adds the `.on()` method; pulls "selector" as a dependency
$( ".toggle" ).on( "click", function() {
    $( this ).css( "color", "red" );
} );
AMD (Asynchronous Module Definition)

AMD is a module format built for the browser. For more information, we recommend require.js' documentation.

define( [ "jquery" ], function( $ ) {

} );

Node.js doesn't understand AMD natively so this method is mostly used in a browser setup.

Node.js pre-requisites

For jQuery to work in Node, a window with a document is required. Since no such window exists natively in Node, one can be mocked by tools such as jsdom. This can be useful for testing purposes.

For Node-based environments that don't have a global window, jQuery exposes a dedicated jquery/factory entry point.

To import jQuery using this factory, use the following:

import { JSDOM } from "jsdom";
const { window } = new JSDOM( "" );
import { jQueryFactory } from "jquery/factory";
const $ = jQueryFactory( window );

or, if you use require:

const { JSDOM } = require( "jsdom" );
const { window } = new JSDOM( "" );
const { jQueryFactory } = require( "jquery/factory" );
const $ = jQueryFactory( window );
Slim build in Node.js

To use the slim build of jQuery in Node.js, use "jquery/slim" instead of "jquery" in both require or import calls above. To use the slim build in Node.js with factory mode, use jquery/factory-slim instead of jquery/factory.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm jquery

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229