# CVE-2026-34950: fast-jwt has an incomplete fix for CVE-2023-48223: JWT Algorithm Confusion via Whitespace-Prefixed RSA Public Key

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- 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.26%, higher than 18% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-02T20:37:54.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-mvf2-f6gm-w987
- Weaknesses: CWE-20, CWE-327
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

fast-jwt provides fast JSON Web Token (JWT) implementation. In 6.1.0 and earlier, the publicKeyPemMatcher regex in fast-jwt/src/crypto.js uses a ^ anchor that is defeated by any leading whitespace in the key string, re-enabling the exact same JWT algorithm confusion attack that CVE-2023-48223 patched.

(As written by CVE List.)

## Affected

- nearform fast-jwt: <= 6.1.0; before 6.2.0
- fast-jwt (npm): before 6.2.0

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/nearform/fast-jwt/security/advisories/GHSA-mvf2-f6gm-w987> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34950> (advisory)
- <https://github.com/advisories/GHSA-c2ff-88x2-x9pg> (advisory)
- <https://github.com/nearform/fast-jwt> (package)

## Sources

- CVE List: [CVE-2026-34950](https://www.cve.org/CVERecord?id=CVE-2026-34950), CVE Terms of Use, modified 2026-04-06
- GitHub Advisory Database: [GHSA-mvf2-f6gm-w987](https://github.com/advisories/GHSA-mvf2-f6gm-w987), CC-BY-4.0, modified 2026-04-07
- NVD: [CVE-2026-34950](https://nvd.nist.gov/vuln/detail/CVE-2026-34950), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-34950 · Whole record: https://cve.day/CVE-2026-34950.json · Rebuilt by cve.day 2026-11-25T22:59:18.025Z
