npmWorst: Critical5 advisories

jsonwebtoken: known vulnerabilities

jsonwebtoken has 5 reviewed security advisories in the GitHub Advisory Database — 1 critical, 2 high, 2 moderate. The most recent was published 2022-12-23. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the jsonwebtoken versions running across your servers, containers and images, and ranks what to patch first.

How to fix jsonwebtoken

Upgrade jsonwebtoken to a release at or above the fixed version shown for each advisory below. For npm:

npm install jsonwebtoken@9.0.0 (or run npm audit fix)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (5)

jsonwebtoken unrestricted key type could lead to legacy keys usage High 8.1 CWE-327 — Affected: before 9.0.0. Fixed in 9.0.0. Published 2022-12-23. GHSA-8cf7-32gw-wr33 · CVE-2022-23539
jsonwebtoken's insecure implementation of key retrieval function could lead to Forgeable Public/Private Tokens from RSA to HMAC Moderate 5.0 CWE-1259 CWE-287 — Affected: before 9.0.0. Fixed in 9.0.0. Published 2022-12-22. GHSA-hjrf-2m68-5959 · CVE-2022-23541
jsonwebtoken vulnerable to signature validation bypass due to insecure default algorithm in jwt.verify() Moderate 6.4 CWE-287 CWE-327 CWE-347 — Affected: before 9.0.0. Fixed in 9.0.0. Published 2022-12-22. GHSA-qwph-4952-7xr6 · CVE-2022-23540
jsonwebtoken has insecure input validation in jwt.verify function High 7.6 CWE-20 — Affected: before 9.0.0. Fixed in 9.0.0. Published 2022-12-21. GHSA-27h2-hvpr-p74q · CVE-2022-23529

Find jsonwebtoken across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.