CVE-2026-34950Nearform Fast-jwt
Critical 9.1 No auth needed
Follow: this CVE · Nearform · Nearform Fast-jwt We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- —
- Auth required
- No
- Published
- Apr 6, 2026
- Updated
- Oct 26, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-327
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Fast-jwt.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | fast-jwt |
< 6.2.0 |
6.2.0 |
npm install fast-jwt@6.2.0 |
Per OSV / GitHub Advisories (GHSA-mvf2-f6gm-w987). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| nearform | fast-jwt | < 6.2.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Vendor Advisory