npm package

jsonwebtoken vulnerabilities by version

The latest release, 9.0.3 (Dec 4, 2025), has no known vulnerabilities. 6% of last week’s 60.4M downloads went to versions with known vulnerabilities. OSV.dev lists 4 advisories for jsonwebtoken; the newest was published on Dec 22, 2022.

npm (opens in a new tab) describes it as “JSON Web Token implementation (symmetric and asymmetric)”

Latest release
9.0.3
Dec 4, 2025, no known vulnerabilities
Downloads last week
60.4M
All versions, from npm
Advisories on OSV.dev
4
Newest Dec 22, 2022
Licence
MIT

Most-downloaded versions last week

From npm’s per-version download counts for the last 7 days, each checked against OSV.dev. Open a version for its advisories and what to upgrade to.

VersionKnown vulnerabilitiesDownloads
9.0.3latestDec 4, 2025No known vulnerabilities45.5M
9.0.2Aug 30, 2023No known vulnerabilities9M
8.5.1Mar 18, 20193 known vulnerabilities, worst rated critical3.4M
9.0.0Dec 21, 2022No known vulnerabilities2M
9.0.1Jul 5, 2023No known vulnerabilities156.7K
7.4.3Aug 17, 20173 known vulnerabilities, worst rated critical63.7K
8.5.0Feb 20, 20193 known vulnerabilities, worst rated critical53.5K
8.4.0Nov 14, 20183 known vulnerabilities, worst rated critical24.3K

Who is still on a vulnerable jsonwebtoken

6% of last week’s 60.4M jsonwebtoken downloads went to versions with known vulnerabilities.

From npm’s per-version download counts for the last 7 days, each version checked against OSV.dev. The versions checked cover over 99% of downloads.

Release lines

The newest release of each major line, from the registry. jsonwebtoken doesn’t publish support dates we can check.

LineNewest releaseReleased
99.0.3Dec 4, 2025
88.5.1Mar 18, 2019
77.4.3Aug 17, 2017
66.2.0Apr 29, 2016
55.7.0Feb 16, 2016
44.2.2Mar 26, 2015

Newest advisories

The 4 most recently published, with the versions each one affects.

  1. WarningCVE-2022-23541 on OSV.dev (opens in a new tab)GHSA-hjrf-2m68-5959

    jsonwebtoken's insecure implementation of key retrieval function could lead to Forgeable Public/Private Tokens from RSA to HMAC

    Affects < 9.0.0. Published Dec 22, 2022.

  2. WarningCVE-2022-23540 on OSV.dev (opens in a new tab)GHSA-qwph-4952-7xr6

    jsonwebtoken vulnerable to signature validation bypass due to insecure default algorithm in jwt.verify()

    Affects < 9.0.0. Published Dec 22, 2022.

  3. CriticalCVE-2022-23539 on OSV.dev (opens in a new tab)GHSA-8cf7-32gw-wr33

    jsonwebtoken unrestricted key type could lead to legacy keys usage

    Affects < 9.0.0. Published Dec 22, 2022.

  4. CriticalCVE-2015-9235 on OSV.dev (opens in a new tab)GHSA-c7hr-j4mj-j2w6

    Verification Bypass in jsonwebtoken

    Affects < 4.2.2. Published Oct 9, 2018.

Which jsonwebtoken do you have?

Paste a public GitHub repo or drop your package.json and see every vulnerable, end-of-life or deprecated dependency, with one fix task for your coding agent. Free, no sign-up.

Check your whole repo

How this page is checked

StackPrism reads every OSV.dev advisory for jsonwebtoken, merges duplicates filed under several ids, and asks OSV.dev which ones affect each version listed. Releases and their dates come from deps.dev, downloads from npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.

Last checked against OSV.dev, CISA KEV, npm and deps.dev.