Quick answers
- Is CVE-2026-49852 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-49852 being exploited in the wild.
- How severe is CVE-2026-49852?
- High severity, with a CVSS score of 4, published 17 July 2026.
- Which products and versions are affected?
- Authlib Joserfc < 1.6.8, <= 1.6.7; joserfc (PyPI) ECOSYSTEM:introduced=0,fixed=1.6.8.
- Is there a fix for CVE-2026-49852?
- Yes. joserfc (PyPI): upgrade to 1.6.8 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-49852 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-49852?
- Check whether you run Authlib Joserfc or joserfc (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- joserfc (PyPI): upgrade to 1.6.8 or later
pip install "joserfc>=1.6.8"
Technical details
A vulnerability in joserfc's HMAC implementation (HS256/HS384/HS512) allows for signature bypass when the verification key is an empty string or None. The root cause is in `OctKey.import_key` and `HMACAlgorithm.verify`, where the library only issues a `SecurityWarning` for short keys but fails to reject zero-length keys. If an application sources its JWT secret from an unset environment variable or a missing configuration entry that defaults to an empty string, an attacker can generate a valid signature using an empty HMAC key. This allows for full authentication bypass and token forgery. The issue is fixed in version 1.6.8 by enforcing a hard rejection of empty keys.
Affected products
- authlib joserfc < 1.6.8
Identifiers
- CVE-2026-49852
- GHSA-gg9x-qcx2-xmrh
- PYSEC-2026-2528
Timeline
- 2026-05-27: patched: Version 1.6.8 released
- 2026-05-29: advisory: GitHub Security Advisory published
- 2026-07-17: disclosed: CVE published to NVD