Skip to main content
ContentCritical PriorityPro

Vulnerable JS Libraries

Updated November 2026·SecScanner Team

JavaScript libraries with known vulnerabilities can be exploited by attackers.

Results in 1–3 minutes · Free · No signup required

Want the result for your own site? Free Website Vulnerability Scanner — paste your domain, get the report.

Why It Matters

Outdated libraries like jQuery, Angular, or React with known CVEs can be exploited for XSS, prototype pollution, or other attacks.

How We Check

We identify JavaScript libraries on your page and check them against known vulnerability databases.

Good vs Bad Values

Good and bad values for Vulnerable JS Libraries
ValueVerdictWhy
jquery-3.7.1.min.jsGoodAbove the 3.5.0 threshold the check applies. jQuery 3.5.0 fixed the two XSS issues CVE-2020-11022 and CVE-2020-11023 in HTML handling.
jquery-1.12.4.min.js or jquery-2.2.4.min.jsBadAnything below 3.5.0 is flagged. These versions carry known cross-site scripting problems in jQuery.htmlPrefilter and similar paths.
jquery-3.4.1.min.jsBadStill below 3.5.0. The 3.4.0 release fixed a prototype pollution bug in jQuery.extend (CVE-2019-11358), and 3.5.0 fixed the later XSS issues.
lodash.4.17.21.min.jsGood4.17.21 is the version the check treats as safe; it contains the fixes for CVE-2021-23337 (template command injection) and the ReDoS CVE-2020-28500.
lodash-4.17.15.jsBadOlder than 4.17.21. Earlier releases contain prototype pollution paths such as CVE-2019-10744 in defaultsDeep.
moment-2.29.1.min.jsBadBelow 2.29.4, which fixed a ReDoS in the RFC 2822 date parser (CVE-2022-31129). The project is in maintenance mode, so migration is also an option.
bootstrap-3.3.7.min.js or bootstrap-4.1.3.min.jsBadBootstrap 3 before 3.4.1 and 4 before 4.3.1 had an XSS in the tooltip and popover data-template (CVE-2019-8331). The check applies stricter cut-offs than that single issue.
angular-1.5.8.min.jsBadAngularJS before 1.6.0 is flagged. The whole 1.x line reached end of life at the end of 2021, so 1.8.x gets no fixes either.
Library bundled into app.min.js with no version in the filenameWeakThe check matches names and URLs, so a bundled copy is invisible to it. Run a dependency audit as well; the page scan is not a complete inventory.

How to Fix

Update vulnerable libraries to patched versions. Use npm audit or Snyk to monitor dependencies. Implement a regular update schedule.

Find the versions you actually ship. In the browser console on your page:

console.log(window.jQuery && jQuery.fn.jquery, window._ && _.VERSION, window.moment && moment.version);

npm projects — audit and upgrade the real dependency tree:

pnpm audit
pnpm update jquery lodash moment bootstrap --latest
pnpm why jquery   # who else pulls an old copy in

Force a patched transitive version when a dependency you do not control pins an old one:

{
  "pnpm": {
    "overrides": { "lodash": ">=4.17.21", "jquery": ">=3.5.0" }
  }
}

CDN tags — change the version in the URL and add an integrity hash (see the Subresource Integrity check):

<script src="https://code.jquery.com/jquery-3.7.1.min.js"
        integrity="sha256-PASTE_HASH_HERE" crossorigin="anonymous"></script>

WordPress — core ships its own jQuery; update core rather than loading a second copy. If a theme or plugin enqueues an old one, find it with wp plugin list --update=available and wp theme list --update=available, then update or replace it. Automate it: enable Dependabot or Renovate so a new advisory opens a pull request, and run pnpm audit in CI.

Verify by reloading the page, checking the console version again, and re-running the scan. If the check still reports a library you removed, look for a second script tag or a cached bundle.

Common Mistakes

  • Fixing package.json but not the page. A hand-written script tag, a theme that bundles its own jQuery, or a plugin that loads an old copy still ships the old file.
  • Trusting a major-version label. jQuery 3.x is not automatically safe; the cut-off for these two flaws is 3.5.0.
  • Loading a pinned CDN URL years old and forgetting it. A CDN link with a version in the path never updates itself, so the version is exactly as old as the day it was written.
  • Using jQuery Migrate or a compatibility shim as a reason to stay on 1.x. The shim adds old behaviour back; it does not patch the vulnerabilities.
  • Treating Moment.js as safe because it still works. It is in maintenance mode, and a ReDoS fix does not change the advice to move to a maintained library.

Frequently Asked Questions

What is Vulnerable JS Libraries?

JavaScript libraries with known vulnerabilities can be exploited by attackers.

Why does Vulnerable JS Libraries matter for website security?

Outdated libraries like jQuery, Angular, or React with known CVEs can be exploited for XSS, prototype pollution, or other attacks.

How do I fix Vulnerable JS Libraries issues?

Update vulnerable libraries to patched versions. Use npm audit or Snyk to monitor dependencies. Implement a regular update schedule.

Related Security Checks

Related Tool

Website Vulnerability Scanner

Run all 7 related checks with our free website vulnerability scanner

Check Your Website Now

Run a free security scan to check for Vulnerable JS Libraries issues and 61 other security checks.

Scan Your Website Free