CVE-2022-23540 in Auth0 Jsonwebtoken
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...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full integrity impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Auth0 | Jsonwebtoken | ≤ 8.5.1 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2022-23540 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-063615-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L |
| Published | 2022-12-22 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-287: Improper Authentication
Software does not prove or insufficiently proves that the user is who they claim to be.
CWE-347: CWE-347
Related attack patterns (CAPEC)
CAPEC-57 Utilizing REST's Trust in the System Resource to Obtain Sensitive Data via CWE-287
CAPEC-463 Padding Oracle Crypto Attack via CWE-347
CAPEC-475 Signature Spoofing by Improper Validation via CWE-347
CAPEC-633 Token Impersonation via CWE-287
CAPEC-650 Upload a Web Shell to a Web Server via CWE-287
Show all 12
CAPEC-194 Fake the Source of Data via CWE-287
CAPEC-593 Session Hijacking via CWE-287
CAPEC-22 Exploiting Trust in Client via CWE-287
CAPEC-94 Adversary in the Middle (AiTM) via CWE-287
CAPEC-114 Authentication Abuse via CWE-287
CAPEC-115 Authentication Bypass via CWE-287
CAPEC-151 Identity Spoofing via CWE-287
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2022-23540 affects versions <=8.5.1 of the jsonwebtoken library, allowing signature validation bypass due to the default 'none' algorithm in jwt.verify() function.
An attacker can exploit this vulnerability by crafting a JWT with a 'none' algorithm, bypassing the intended signature validation, leading to unauthorized access.
Questions
What is CVE-2022-23540?
CVE-2022-23540 affects versions <=8.5.1 of the jsonwebtoken library, allowing signature validation bypass due to the default 'none' algorithm in jwt.verify() function.
What is the CVSS score for CVE-2022-23540?
CVE-2022-23540 has CVSS 7.6 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L. EPSS: 0.6%.
Is CVE-2022-23540 actively exploited?
No confirmed active exploitation of CVE-2022-23540 as of 2026-09-25.
How do I remediate CVE-2022-23540?
Priority: IMMEDIATE.
What systems are affected by CVE-2022-23540?
CVE-2022-23540 affects Auth0 Jsonwebtoken.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Auth0","product":"Jsonwebtoken","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.