{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-107724","id":"CVE-2026-107724","title":"fast-jwt treats raw public JWK JSON as an HMAC secret, enabling HS256 token forgery","description":"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 cre","descriptionLong":"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.","published":"2026-10-08T21:53:01.909Z","updated":"2026-10-28T02:31:00.260616752Z","reserved":"2026-10-08T17:21:52.976Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["nearform fast-jwt"],"affectedProducts":[{"vendor":"nearform","product":"fast-jwt","defaultStatus":null,"versions":[{"version":">= 6.2.4, < 6.3.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"fast-jwt","purl":"pkg:npm/fast-jwt","ranges":[">=6.2.4 <6.3.0"],"fixed":["6.3.0"],"advisory":"GHSA-g3jj-5cmm-3hxx"}],"cwes":["CWE-347"],"aliases":["GHSA-g3jj-5cmm-3hxx"],"references":[{"url":"https://github.com/nearform/fast-jwt/security/advisories/GHSA-g3jj-5cmm-3hxx","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/nearform/fast-jwt/pull/636","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/nearform/fast-jwt/commit/10f9591349199ed2ab9fa1748ce92cdca697f6cf","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/nearform/fast-jwt/releases/tag/v6.3.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/107xxx/CVE-2026-107724.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-107724","tags":["advisory"]},{"url":"https://github.com/nearform/fast-jwt","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00282,"epssPercentile":0.21038,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-107724","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-107724","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-107724","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-g3jj-5cmm-3hxx","ok":true,"note":"GHSA-g3jj-5cmm-3hxx"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-107724","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}