{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-107722","published":"2026-10-08T22:17:28.447000Z","last_modified":"2026-10-13T17:17:16.970000Z","status":"Deferred","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-347"],"cpes":[],"cpes_truncated":false,"vendors":["nearform"],"products":["nearform/fast-jwt"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-ww5h-9m49-7xx4","ecosystem":"npm","name":"fast-jwt","purl":"pkg:npm/fast-jwt","ranges":[{"introduced":"6.2.0","fixed":"6.3.0"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2026-107722/","html_en":"/en/cve/CVE-2026-107722/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-107722","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-107722"},"untrusted":{"vendor_name":"nearform","product_name":"fast-jwt","desc_en":"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.","affected":[{"untrusted_vendor":"nearform","untrusted_product":"fast-jwt","versions":[]}],"ai":{"model":"us.anthropic.claude-haiku-4-5-20251001-v1:0","prompt_version":"2","input_hash":"e0ffaca372d703b84bb577acbed5dd59","generated":"2026-11-26T23:29:53.958985Z","es":{"untrusted_title":"Bypass de autenticación por clasificación incorrecta de clave RSA en fast-jwt","untrusted_summary":"fast-jwt versiones 6.2.0 a 6.3.0 pueden clasificar incorrectamente claves públicas RSA como secretos HMAC cuando el contenido tiene caracteres no espaciables antes del encabezado PEM. Un atacante que conoce los bytes de la clave pública puede firmar reclamaciones HS256 arbitrarias, resultando en bypass de autenticación o autorización cuando HS256 está permitido."},"en":{"untrusted_title":"Authentication bypass via RSA public key misclassification in fast-jwt","untrusted_summary":"fast-jwt versions 6.2.0 through 6.3.0 can misclassify RSA public keys as HMAC secrets when non-whitespace content precedes the PEM header. An attacker knowing the public key bytes can sign arbitrary HS256 claims, resulting in authentication or authorization bypass when HS256 is inferred or allowed."},"remediation":{"status":"fix","fixed_versions":["6.3.0"],"untrusted_action_es":"Actualiza fast-jwt a versión 6.3.0 o superior. Alternativamente, usa una lista de algoritmos permitidos que solo incluya algoritmos asimétricos.","untrusted_action_en":"Update fast-jwt to version 6.3.0 or later. Alternatively, use an asymmetric-only algorithm allowlist to prevent the attack.","vendor_url":"https://github.com/nearform/fast-jwt/releases/tag/v6.3.0"},"reviewed":false},"references":[{"url":"https://github.com/nearform/fast-jwt/commit/d96bbc6c5336055a6dbfa318fdbab01197264cfa","tags":[]},{"url":"https://github.com/nearform/fast-jwt/pull/632","tags":[]},{"url":"https://github.com/nearform/fast-jwt/releases/tag/v6.3.0","tags":[]},{"url":"https://github.com/nearform/fast-jwt/security/advisories/GHSA-ww5h-9m49-7xx4","tags":[]}]}}