CVE-2022-23539
jsonwebtoken unrestricted key type could lead to legacy keys usage
Versions `<=8.5.1` of `jsonwebtoken` library could be misconfigured so that legacy, insecure key types are used for signature verification. For example, DSA keys could be used with the RS256 algorithm. You are affected if you are using an algorithm and a key type other than a combination listed in the GitHub Security Advisory as unaffected. This issue has been fixed, please update to version 9.0.0. This version validates for asymmetric key type and algorithm combinations. Please refer to the above mentioned algorithm / key type combinations for the valid secure configuration. After updating to version 9.0.0, if you still intend to continue with signing or verifying tokens using invalid key type/algorithm value combinations, you’ll need to set the `allowInvalidAsymmetricKeyTypes` option to `true` in the `sign()` and/or `verify()` functions.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.524% · 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-19T15:55:09.885Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 5.9 · published by GitHub_MCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N
Assessment source · checked 2026-11-19T12:56:20.085Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T15:55:09.885Z | CISA KEV |
| cvss | verified | 2026-11-19T12:56:20.085Z | 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.085Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:56:20.085Z | 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": "CVE Program Container",
"references": [
{
"url": "https://github.com/auth0/node-jsonwebtoken/security/advisories/GHSA-8cf7-32gw-wr33",
"name": "https://github.com/auth0/node-jsonwebtoken/security/advisories/GHSA-8cf7-32gw-wr33",
"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.551Z"
}
},
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2022-23539",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-04-15T13:31:06.210734Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-04-15T13:31:34.538Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-8cf7-32gw-wr33",
"aliases": [
"CVE-2022-23539"
],
"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-8cf7-32gw-wr33/GHSA-8cf7-32gw-wr33.json",
"last_known_affected_version_range": "<= 8.5.1"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/auth0/node-jsonwebtoken/security/advisories/GHSA-8cf7-32gw-wr33",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-23539",
"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-327"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2022-12-23T00:15:00Z",
"github_reviewed_at": "2022-12-22T03:32:22Z"
}
}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:22.000Z
Source modification: 2024-06-24T21:23:38.000ZDocument fingerprint
013cb832347e2b96633515ed5f0745f5349983ccc552ab80509d8bdda647430e - CVE ProgramConsulted: 2026-11-19T12:56:20.085ZArchived source JSON
Source publication: 2022-12-22T23:20:47.855Z
Source modification: 2025-04-15T13:31:34.538ZDocument fingerprint
168efd9c1207b85eb92e15ecfe7472242a62e879df67e76debd1960a71c6aec7 - CISA KEVConsulted: 2026-11-19T15:55:09.885ZArchived 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