CVE-2026-107722
9.8 CRITICALpublic exploit availablePublished 2026-10-08 · Updated 2026-10-13
AI risk analysis
- Summary
- The flaw allows an attacker to misclassify RSA public keys as HMAC secrets, enabling them to sign JWTs with the public key, leading to authentication or authorization bypass.
- Exploitability
- Exploitation requires knowledge of the public key bytes and the ability to manipulate the key content. The attack is moderately hard to exploit due to the need for precise key manipulation.
- Blast radius
- If exploited, this could lead to unauthorized access or privilege escalation, impacting the security of the application and potentially the entire system.
- Detection
- No reliable host or network indicator is derivable from the published description.
- Prioritized remediation
- Upgrade to fast-jwt version 6.3.0 or later.
Analysis generated locally by qwen2.5:7b-instruct (no data left the box). AI-assisted — verify against primary sources before acting.
NVD description
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 detection and reach the HMAC fallback. An attacker who knows the public key bytes can sign arbitrary HS256 claims with that public material when HS256 is inferred or allowed, resulting in authentication or authorization bypass. An asymmetric-only algorithm allowlist prevents the attack. This issue is fixed in version 6.3.0.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-347
Public exploit & PoC references
- https://github.com/nearform/fast-jwt/commit/d96bbc6c5336055a6dbfa318fdbab01197264cfa
- https://github.com/nearform/fast-jwt/pull/632
- https://github.com/nearform/fast-jwt/releases/tag/v6.3.0
- https://github.com/nearform/fast-jwt/security/advisories/GHSA-ww5h-9m49-7xx4
- https://github.com/nearform/fast-jwt/security/advisories/GHSA-ww5h-9m49-7xx4
All references
- https://github.com/nearform/fast-jwt/commit/d96bbc6c5336055a6dbfa318fdbab01197264cfa
- https://github.com/nearform/fast-jwt/pull/632
- https://github.com/nearform/fast-jwt/releases/tag/v6.3.0
- https://github.com/nearform/fast-jwt/security/advisories/GHSA-ww5h-9m49-7xx4
- https://github.com/nearform/fast-jwt/security/advisories/GHSA-ww5h-9m49-7xx4
Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.
Related CVEs
- CRITICALCVE-2026-102268PoC
- CRITICALCVE-2026-102946PoC
- CRITICALCVE-2026-59163PoC
- HIGHCVE-2026-87004PoC
- HIGHCVE-2026-100871PoC
- HIGHCVE-2026-101062PoC
- HIGHCVE-2026-107723PoC
- HIGHCVE-2026-107813PoC
Related by shared AI tags and CWE weakness class. Browse the full archive.