PT-2026-55459 · Pypi · Joserfc

CVE-2026-49852

·

Published

2026-07-02

·

Updated

2026-07-23

CVSS v4.0

8.7

High

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions joserfc versions 1.6.7 and earlier
Description An authentication bypass exists when the verification key provided to joserfc.jwt.decode is an empty string or None. This occurs because the HMACAlgorithm.verify() and HMACAlgorithm.sign() functions pass the key directly to hmac.new() without validating its length. While OctKey.import key() issues a SecurityWarning for keys shorter than 14 bytes, it does not reject zero-length keys. Consequently, if an application's JWT secret is unset (e.g., missing environment variable or empty database row), an unauthenticated attacker can forge valid HMAC-signed tokens by signing them with an empty key, allowing them to manipulate claims such as sub or admin.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Improper Authentication

Inadequate Encryption Strength

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-49852
ECHO-9E9B-2656-EC45
GHSA-GG9X-QCX2-XMRH
OPENSUSE-SU-2026:11183-1
OPENSUSE-SU-2026:21263-1
PYSEC-2026-2528
RHSA-2026:42045

Affected Products

Joserfc