CVE-2022-23540: auth0 jsonwebtoken Improper Authentication
Vulnerability summary
CVE-2022-23540 is a high (CVSS 7.6) Improper Authentication vulnerability in auth0 jsonwebtoken. EPSS estimates a 0.55% chance of exploitation in the next 30 days, higher than 44.9% of scored vulnerabilities.
Timeline
- 22-12-2022PublishedVulnerability first disclosed.
- 13-02-2025Last modifiedVulnerability information updated.
Description
In versions `<=8.5.1` of `jsonwebtoken` library, lack of algorithm definition in the `jwt.verify()` function can lead to signature validation bypass due to defaulting to the `none` algorithm for signature verification. Users are affected if you do not specify algorithms in the `jwt.verify()` function. This issue has been fixed, please update to version 9.0.0 which removes the default support for the none algorithm in the `jwt.verify()` method. There will be no impact, if you update to version 9.0.0 and you don’t need to allow for the `none` algorithm. If you need 'none' algorithm, you have to explicitly specify that in `jwt.verify()` options.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA6.4MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:LDiffers
- OSV · NpmEcosystem advisory · calculated6.4MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:LDiffers
EPSS trend
Probability
0.55%
Chance of exploitation in the next 30 days
Percentile
45%
Versus all other CVEs
30-day change
+0.02 pp
From 0.53% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-287Improper AuthenticationWhen an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.
- CWE-347Improper Verification of Cryptographic SignatureThe product does not verify, or incorrectly verifies, the cryptographic signature for data.
Affected systems
Auth02 products
- jsonwebtoken≤ 8.5.1
- node-jsonwebtoken≤ 8.5.1
Npm1 product
- jsonwebtoken< 9.0.0
2 vendors · 3 products
References
6 links- github.com/auth0/node-jsonwebtoken/security/advisories/GHSA-qwph-4952-7xr6X Refsource CONFIRMWEBThird Party Advisory
- github.com/auth0/node-jsonwebtoken/commit/e1fa9dcc12054a8681db4e6373da1b30cf7016e3X Refsource MISCWEBPatch