CVE-2022-23540
jsonwebtoken vulnerable to signature validation bypass due to insecure default algorithm in jwt.verify()
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.572% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:25:55.090Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 6.4 · published by GitHub_MCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L
Assessment source · checked 2026-11-19T12:56:20.129Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:25:55.090Z | CISA KEV |
| cvss | verified | 2026-11-19T12:56:20.129Z | CVE Program |
| epss | verified | 2026-11-19T16:04:32.877Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:28.680Z | OSV |
| affected | verified | 2026-11-19T12:56:20.129Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:56:20.129Z | CVE Program |
Affected versions and configuration
auth0 node-jsonwebtoken; default status: unknown: <= 8.5.1 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "auth0",
"product": "node-jsonwebtoken",
"versions": [
{
"status": "affected",
"version": "<= 8.5.1"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2022-23540",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2024-07-16T16:23:30.289495Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2024-07-16T16:23:36.527Z"
}
},
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/auth0/node-jsonwebtoken/security/advisories/GHSA-qwph-4952-7xr6",
"name": "https://github.com/auth0/node-jsonwebtoken/security/advisories/GHSA-qwph-4952-7xr6",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://github.com/auth0/node-jsonwebtoken/commit/e1fa9dcc12054a8681db4e6373da1b30cf7016e3",
"name": "https://github.com/auth0/node-jsonwebtoken/commit/e1fa9dcc12054a8681db4e6373da1b30cf7016e3",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://security.netapp.com/advisory/ntap-20240621-0007/",
"tags": [
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T03:43:46.466Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-qwph-4952-7xr6",
"aliases": [
"CVE-2022-23540"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "9.0.0"
}
]
}
],
"package": {
"name": "jsonwebtoken",
"purl": "pkg:npm/jsonwebtoken",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/12/GHSA-qwph-4952-7xr6/GHSA-qwph-4952-7xr6.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/auth0/node-jsonwebtoken/security/advisories/GHSA-qwph-4952-7xr6",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-23540",
"type": "ADVISORY"
},
{
"url": "https://github.com/auth0/node-jsonwebtoken/commit/e1fa9dcc12054a8681db4e6373da1b30cf7016e3",
"type": "WEB"
},
{
"url": "https://github.com/auth0/node-jsonwebtoken",
"type": "PACKAGE"
},
{
"url": "https://security.netapp.com/advisory/ntap-20240621-0007",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-287",
"CWE-327",
"CWE-347"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2022-12-22T19:15:00Z",
"github_reviewed_at": "2022-12-22T03:32:59Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | npm / package | jsonwebtoken | Not a distribution channel | 9.0.0 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:28.680ZArchived source JSON
Source publication: 2022-12-22T03:32:59.000Z
Source modification: 2025-02-13T18:33:13.000ZDocument fingerprint
013cb832347e2b96633515ed5f0745f5349983ccc552ab80509d8bdda647430e - CVE ProgramConsulted: 2026-11-19T12:56:20.129ZArchived source JSON
Source publication: 2022-12-22T18:02:24.770Z
Source modification: 2025-02-13T16:32:21.578ZDocument fingerprint
dac18760231672f5bf97c8091b7a02399cf4868f5711104da5199b133bc8d6b3 - CISA KEVConsulted: 2026-11-19T16:25:55.090ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:32.877ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
09692db23ae991b23210d76fe49e08c229368c3f28b258bdb2be98d30dab7493
Official status history
- UNKNOWN → PUBLISHED · · evidence