CVE-2026-49852joserfc Improper Authentication
NVD
Vulnerability Summary
joserfc is a Python library that provides an implementation of several JSON Object Signing and Encryption (JOSE) standards. Prior to 1.6.8, joserfc.jwt.decode accepts attacker-forged HMAC-signed tokens when the caller-supplied verification key is the empty string or None, because HMACAlgorithm.sign and HMACAlgorithm.verify in src/joserfc/_rfc7518/jws_algs.py pass the output of OctKey.get_op_key(...) to hmac.new(...) and OctKey.import_key in src/joserfc/_rfc7518/oct_key.py only emits a SecurityWarning for keys shorter than 14 bytes without rejecting zero-length input. This issue is fixed in version 1.6.8.
Affected & Patched Versions
- joserfc <= 1.6.7
- joserfc 1.6.8
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run joserfc and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Jul 2, 2026Published
- Jul 20, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new joserfc CVEsYou are reading CVE-2026-49852. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsMore joserfc CVEs
External References
Data last checked: Nov 22, 2026 18:26 UTC