// Security Advisory Triage

fast-jwt HS256 forgery via mishandled JWK public keys

GitHub advisories — npm · published 2026-10-09 06:14 UTC
ACTION NEEDED PATCH_NOW SECURITYAPI
WHAT CHANGEDGitHub published CVE-2026-107724 on 8 October 2026. fast-jwt treats raw public JWK JSON as an HMAC secret, allowing an attacker to forge HS256 tokens. Patched in version 6.3.0.
WHY IT MATTERSAn attacker who obtains your public key can sign arbitrary tokens that your service will accept as valid. This bypasses authentication entirely in services using fast-jwt for JWT verification with JWK public keys.
WHAT TO DOGrep your package.json and lock files for fast-jwt. If present and below 6.3.0, update to 6.3.0 or later this week. If you cannot update immediately, switch JWT verification to a different library until you can.
Model-reported confidence 95% (not measured accuracy) Primary source ↗ written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+ghsa_id: GHSA-g3jj-5cmm-3hxx
+summary: fast-jwt treats raw public JWK JSON as an HMAC secret, enabling HS256 token forgery
+severity: high
+published_at: 2026-10-08T22:01:53Z
+cve_id: CVE-2026-107724
+vulnerabilities[].package.name: fast-jwt
+vulnerabilities[].first_patched_version: 6.3.0
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
triage verdictMATERIAL at 0.92, needed 0.5
triage reasoningJWT authentication library with token forgery vulnerability. High-severity, exploitable flaw in identity-critical code.
signalsknown exploitation: HS256 token forgery via mishandled JWK · high severity rating · JWT library — authentication/identity critical path · new advisory with CVE and patched version · fast-jwt is a runtime dependency in Node.js services
suppression—
triage modelanthropic/claude-haiku-4.5 ($0.00000)
writer modelanthropic/claude-sonnet-4.5 ($0.00000)