Impact
The vulnerability arises when joserfc accepts oversized JWS payloads encoded with b64=false (RFC7797 unencoded payload). In affected releases the payload size check governed by JWSRegistry.max_payload_length is bypassed for these payloads, allowing a malicious actor to embed a very large payload. During deserialization the library consumes excessive memory or processing time, leading to resource exhaustion. This is a classic uncontrolled resource consumption issue (CWE‑400) and allocation without bounds (CWE‑770).
Affected Systems
Authlib joserfc 1.3.4 through 1.6.5 are affected. The fix was released in version 1.6.7; applications that depend on this library and that accept lower‑trust JWS values are at risk.
Risk and Exploitability
The CVSS score of 5.3 indicates moderate severity, and the EPSS score of < 1% shows a low likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector involves forging a JWS token with b64=false and a very large payload, then presenting it to an application that uses joserfc for token verification. If the application accepts the token, the oversized payload triggers resource exhaustion and can degrade availability.
OpenCVE Enrichment