# CVE-2022-23540: jsonwebtoken vulnerable to signature validation bypass due to insecure default algorithm in jwt.verify()

- Severity: Medium 6.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 49% of CVEs (2026-12-01)
- Published: 2022-12-22T03:32:59.000Z
- Modified: 2026-06-17T04:30:19.267Z
- Also known as: GHSA-qwph-4952-7xr6
- Weaknesses: CWE-287, CWE-327, CWE-347
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- auth0 node-jsonwebtoken: <= 8.5.1
- jsonwebtoken (npm): before 9.0.0
- auth0 jsonwebtoken: up to 8.5.1

## Every score

- GitHub_M: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L`
- GitHub: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L`
- NVD: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L`

## References

- <https://github.com/auth0/node-jsonwebtoken/security/advisories/GHSA-qwph-4952-7xr6> (third-party-advisory, web)
- <https://github.com/auth0/node-jsonwebtoken/commit/e1fa9dcc12054a8681db4e6373da1b30cf7016e3> (patch, web)
- <https://security.netapp.com/advisory/ntap-20240621-0007/>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-23540> (advisory)
- <https://github.com/auth0/node-jsonwebtoken> (package)
- <https://security.netapp.com/advisory/ntap-20240621-0007> (web)

## Sources

- CVE List: [CVE-2022-23540](https://www.cve.org/CVERecord?id=CVE-2022-23540), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-qwph-4952-7xr6](https://github.com/advisories/GHSA-qwph-4952-7xr6), CC-BY-4.0, modified 2025-02-13
- NVD: [CVE-2022-23540](https://nvd.nist.gov/vuln/detail/CVE-2022-23540), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-23540 · Whole record: https://cve.day/CVE-2022-23540.json · Rebuilt by cve.day 2026-11-25T22:58:17.754Z
