Skip to content
OpenAdvisories
High · 8.7 CVE-2026-49852 EUVD-2026-45281GHSA-gg9x-qcx2-xmrhPYSEC-2026-2528

joserfc: HS256/HS384/HS512 verify accepts empty/nil HMAC key (cross-language sibling of CVE-2026-45363)

Published Jul 17, 2026 · Updated Jul 20, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
authlib joserfc < 1.6.8 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 joserfc 1.6.8-1 —
Debian 13 joserfc No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS joserfc No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 jaeger 2.19.0-1.2.hum1 RHSA-2026:42045
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-joserfc 1.7.2-2.1 openSUSE-SU-2026:11183-1
openSUSE Leap 16.0 python-joserfc 1.1.0-bp160.3.1 openSUSE-SU-2026:21263-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling airflow-3 3.2.2-r10 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI joserfc < 1.6.8 1.6.8 GHSA-gg9x-qcx2-xmrh

Advisories 3

References