Skip to content
OpenAdvisories
Low · 2.3 CVE-2026-62995 EUVD-2026-50450

joserfc accepts JWT with padding, leading to JWT malleability

Published Jul 29, 2026 · Updated Jul 30, 2026 · Assigned by GitHub_M

Description

joserfc is a Python library that provides an implementation of several JSON Object Signing and Encryption (JOSE) standards. in versions 1.7.1 and prior, joserfc accepts JWTs with trailing padding (==) which are not conforming to the JOSE specifications. This leads to malleability of the JWTs when consumed by joserfc. Depending on this application this might or not be an issue. This could lead to bypass of token revocation or anti-replay protection when implemented as a deny list of tokens or a deny list of token hashes. Note that ECDSA JWS are always malleable because of the malleability of ECDSA signatures (first test case in the code bellow). This makes a scheme which assumes that JWTs are not malleable brittle. However for other signatures (or MAC) schemes it might make sense to assume non malleability of the token. This issue has been fixed in version 1.7.2.

Affected products

VendorProductAffectedFixed
authlib joserfc < 1.7.2 —

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.7.2-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.20.0-0.8.hum1 RHSA-2026:48758
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-joserfc 1.7.4-2.1 openSUSE-SU-2026:11423-1
openSUSE Leap 16.0 python-joserfc 1.1.0-bp160.4.1 openSUSE-SU-2026:21515-1

Advisories 3

References