CVE-2026-107722: Vulnerability in fast-jwt
Critical. fast-jwt provides fast JSON Web Token (JWT) implementation. From 6.2.0 until 6.3.0, fast-jwt can misclassify RSA public-key text as an HMAC secret when the key has non-whitespace content before its PEM header. In src/crypto.js, performDetectPublicKeyAlgorithms trims whitespace but publicKeyPemMatcher remains start-anchored, so comments, control characters, zero-width characters, or wrapper text can prevent PEM...
npm, CWE-347
- Exploitation
- None confirmed
- Severity
- 9.8 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-ww5h-9m49-7xx4
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-347
- Published
- 8 Oct 2026
- Last change
- 13 Oct 2026
- Ecosystem
- npm
Affected packages
Vulnerable version ranges and fixed releases
- fast-jwt npm, Affected from 6.2.0 through 6.2.4. Fixed in 6.3.0
Advisories
Vendor and security advisories
Patches and fixes
Updates, commits and release notes