High severityNVD Advisory· Published Jul 17, 2026· Updated Jul 23, 2026
CVE-2026-49852
CVE-2026-49852
Description
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 packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
joserfcPyPI | < 1.6.8 | 1.6.8 |
Affected products
5- osv-coords4 versionspkg:apk/chainguard/airflow-3pkg:apk/wolfi/airflow-3pkg:rpm/opensuse/python-joserfc&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/python-joserfc&distro=openSUSE%20Tumbleweed
< 3.2.2-r10+ 3 more
- (no CPE)range: < 3.2.2-r10
- (no CPE)range: < 3.2.2-r10
- (no CPE)range: < 1.1.0-bp160.3.1
- (no CPE)range: < 1.7.2-2.1
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-gg9x-qcx2-xmrhghsaADVISORY
- github.com/authlib/joserfc/blob/1ddca8f3c73ff47e3bc3ac06cb0c08a9535677ec/src/joserfc/_rfc7518/jws_algs.pyghsaWEB
- github.com/authlib/joserfc/commit/86d00910b2b2d2d07503fee9b572906daefab7f1nvdWEB
- github.com/authlib/joserfc/security/advisories/GHSA-gg9x-qcx2-xmrhnvdWEB
- github.com/authlib/joserfc/releases/tag/1.6.8nvd
News mentions
0No linked articles in our index yet.