{"id":"CVE-2026-107724","published":"2026-10-08T21:53:01Z","modified":"2026-10-09T15:51:27Z","title":"fast-jwt treats raw public JWK JSON as an HMAC secret, enabling HS256 token forgery","vendor":"nearform","product":"fast-jwt","tier":"tail","description":{"text":"fast-jwt provides fast JSON Web Token (JWT) implementation. In 6.2.4, fast-jwt can classify raw serialized public JWK or JWKS JSON as an HMAC secret because src/crypto.js performDetectPublicKeyAlgorithms treats non-PEM strings as symmetric key material. If HS256 is explicitly allowed or inferred, an attacker who knows the exact serialized public-key bytes can use those bytes as an HMAC key and create a token containing arbitrary claims that createVerifier accepts. Serialization ordering or whitespace differences can prevent exploitation, and applications using supported PEM keys with an asymmetric-only algorithm allowlist are not affected. This issue is fixed in version 6.3.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00287,"percentile":0.13873,"provenance":"source"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"references":[{"url":"https://github.com/nearform/fast-jwt/security/advisories/GHSA-g3jj-5cmm-3hxx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nearform/fast-jwt/pull/636","tags":["x_refsource_MISC"]},{"url":"https://github.com/nearform/fast-jwt/commit/10f9591349199ed2ab9fa1748ce92cdca697f6cf","tags":["x_refsource_MISC"]},{"url":"https://github.com/nearform/fast-jwt/releases/tag/v6.3.0","tags":["x_refsource_MISC"]}],"priority":{"score":8.0,"factors":[{"name":"EPSS percentile","points":2.77},{"name":"CVSS severity","points":5.18}]},"vendorSlug":"nearform","affectedVersions":[{"vendor":"nearform","product":"fast-jwt","versions":[">= 6.2.4, < 6.3.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-10-09T15:51:21.495223Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"fast-jwt","vulnerableRanges":[">=6.2.4, <6.3.0"],"patched":["6.3.0"],"from":["GHSA-g3jj-5cmm-3hxx"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-95312","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-nearform-fast-jwt-cve-2023-48223","parents":[{"from":"CVE-2023-48223","to":"CVE-2026-107724","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/crypto.js"],"commits":["https://github.com/nearform/fast-jwt/commit/15a6e92c9adb39acde41a9b11cec0cbde8ad763b","https://github.com/nearform/fast-jwt/commit/10f9591349199ed2ab9fa1748ce92cdca697f6cf"],"basis":"shared function","functions":["cacheSet","performDetectPrivateKeyAlgorithm"]}]},{"from":"CVE-2026-107722","to":"CVE-2026-107724","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/crypto.js"],"commits":["https://github.com/nearform/fast-jwt/commit/d96bbc6c5336055a6dbfa318fdbab01197264cfa","https://github.com/nearform/fast-jwt/commit/10f9591349199ed2ab9fa1748ce92cdca697f6cf"],"basis":"shared function","functions":["cacheSet","performDetectPrivateKeyAlgorithm"]},{"kind":"similar","provenance":"machine","score":0.54,"basis":"same product + CWE + description similarity"}]}]}}