CVE-2026-49852: joserfc · HS256/HS384/HS512 verify accepts empty/nil HMAC key (cross-language sibling of CVE-2026-45363)
Affects kaskadeSource GCVE Database
Mentioned vulnerabilities
Not known to be exploited · CVSS 8.7 High : upgrade to 4.0.7_6 soon.
Data as of 26 Nov 2026, 21:22 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 5% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 4.0.7_6, 1.6.8
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 13 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Nov 2026.
What to do
Upgrade kaskade to 4.0.7_6; joserfc to 1.6.8.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewkaskadepkg:brew/kaskadeOther threats | Affected
| Fixed in
|
PyPIjoserfcpkg:pypi/joserfcOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in joserfc version 4.0.7_6 that fixes this vulnerability. Users should upgrade to this fixed version to ensure empty keys are rejected. Until patched, operators must ensure that JWT secret keys are never empty or None by validating configuration sources and environment variables. Applications should avoid defaulting to empty strings for secrets and implement explicit checks to reject empty keys before calling joserfc.jwt.decode.
Description
The joserfc library's JWT decoding function accepts attacker-forged HMAC-signed tokens when the verification key is empty or None. This occurs because the library only warns about short keys but does not reject zero-length keys, allowing attackers to forge tokens without secret knowledge. Versions up to 1.6.7 are affected, with no patched release available at the time of this report. The vulnerability requires no authentication and arises when the configured JWT secret is empty or unset due to common misconfigurations. This issue is a cross-language sibling of CVE-2026-45363 affecting ruby-jwt, which has implemented key validation to reject empty keys.
References
- github.com/authlib/joserfc/security/advisories/GHSA-gg9x-qcx2-xmrh (opens in a new tab)
- github.com/authlib/joserfc/commit/86d00910b2b2d2d07503fee9b572906daefab7f1 (opens in a new tab)
- github.com/authlib/joserfc (opens in a new tab)
- github.com/authlib/joserfc/blob/1ddca8f3c73ff47e3bc3ac06cb0c08a9535677ec/src/joserfc/_rfc7518/jws_algs.py (opens in a new tab)