Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted b64=false JWS token to application endpoint
-
DeliveryToken passes to joserfc RFC7797 deserialization path
-
Exploitmax_payload_length check absent - oversized payload accepted
-
ExecutionServer allocates unbounded memory for payload
-
PersistRepeat requests exhaust available resources
-
ImpactService availability degraded
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target application accepts JWS tokens bearing the RFC7797 'b64=false' critical header parameter from untrusted or lower-trust callers, and that it relies on joserfc's JWSRegistry.max_payload_length enforcement to bound payload size rather than applying an independent size check before token deserialization. Applications that process only default Base64URL-encoded JWS tokens are not affected; the vulnerability is exclusive to the unencoded-payload code path. The CVSS PR:N/UI:N metrics indicate no attacker authentication or user interaction is required, but effective exploitation is bounded by whether the application exposes an endpoint that processes b64=false JWS input from external sources. Deployments with HTTP body size limits enforced at a proxy or load balancer layer upstream of joserfc reduce the practical risk even on affected library versions. |
| Impact | The CVSS 3.1 base score of 5.3 (Medium) with vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L correctly characterizes this as a remotely reachable, low-complexity denial-of-service issue limited to availability impact. No EPSS score was provided in the input data, so relative exploitation probability cannot be quantified. The vulnerability is not listed in the CISA KEV catalog and no public exploit code has been referenced. The practical blast radius is narrower than the PR:N CVSS metric suggests: only applications that (1) actively accept JWS tokens carrying the RFC7797 b64=false header from lower-trust or external callers, and (2) rely exclusively on joserfc's internal size limit enforcement, are exposed. Deployments that enforce payload size at the HTTP or application gateway layer before invoking joserfc are effectively unaffected. The A:L (Limited) availability rating suggests degraded performance or increased resource consumption rather than immediate process termination, reducing urgency relative to a crash-inducing flaw at the same CVSS score. |
| Exploit ScenarioDerived | An attacker targeting an application that accepts externally supplied JWS tokens - such as a token-validated API endpoint - crafts a syntactically valid JWS with the RFC7797 b64=false header and a multi-megabyte unencoded payload, then submits it repeatedly or with maximum size. Because joserfc's RFC7797 deserialization path omits the max_payload_length check, the server allocates memory proportional to the payload on each verification call, leading to elevated memory consumption or CPU saturation. No public exploit code is known, but the attack requires only knowledge of the JWS format and the ability to reach the endpoint. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 17, 2026
Resource exhaustion in joserfc (versions 1.3.4-1.6.5) is possible because the RFC7797 unencoded-payload (b64=false) JWS code path skips the configured JWSRegistry.max_payload_length check, while the standard compact and flattened JSON paths correctly raise ExceededSizeError. Remotely submitted, cryptographically valid b64=false JWS tokens with arbitrarily large payloads are deserialized without size enforcement, consuming memory or CPU on the verifying server. No public exploit has been identified and the vulnerability is not in the CISA KEV catalog; a vendor-released fix is available in version 1.6.7.
RemediationAI
Vendor-released patch: version 1.6.7, available at https://github.com/authlib/joserfc/releases/tag/1.6.7. The fix - commit 4d4ea2e - adds payload size validation to the b64=false JWS code path, bringing it into parity with the standard compact and flattened JSON paths. Upgrade joserfc to 1.6.7 or later via pip: 'pip install joserfc>=1.6.7'. If an immediate upgrade is not feasible, apply a compensating control at the application or HTTP gateway boundary: reject any inbound request whose token or request body exceeds the intended payload size limit before passing it to joserfc. This workaround requires careful tuning - setting the limit too low may reject legitimate large tokens - and does not eliminate the underlying library flaw, so patching remains the authoritative remediation. The security advisory is at https://github.com/authlib/joserfc/security/advisories/GHSA-wphv-vfrh-23q5.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
joserfc (CPE cpe:2.3:a:authlib:joserfc:*:*:*:*:*:*:*:*) is the Python JOSE implementation from the authlib project, covering JWS, JWE, and JWT standards. RFC 7797 introduces an optional 'b64=false' JWS header that carries the payload in raw, unencoded form rather than Base64URL-encoded, typically used for detached or human-readable payloads. The library's standard JWS deserialization enforces JWSRegistry.max_payload_length and raises ExceededSizeError when the limit is exceeded; however, the RFC7797 code path that handles b64=false tokens omits this size check entirely. The root cause class is CWE-400 (Uncontrolled Resource Consumption): an externally supplied value - the JWS payload - is processed without an upper-bound constraint, allowing an attacker to drive arbitrarily high memory or CPU consumption during deserialization.
Know when Joserfc gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Network-reachable token submission requires no auth; availability impact is limited resource exhaustion, not crash; zero confidentiality or integrity impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
joserfc is a Python library that provides an implementation of several JSON Object Signing and Encryption (JOSE) standards. In versions 1.3.4 through 1.6.5, joserfc accepts oversized RFC7797 b64=false JWS payloads without applying JWSRegistry.max_payload_length, which can lead to resource exhaustion. The normal JWS compact and flattened JSON paths reject payloads above the configured payload-size limit with ExceededSizeError. The RFC7797 unencoded payload paths do not make the same check. A valid b64=false compact or flattened JSON JWS can therefore deserialize successfully with a payload larger than JWSRegistry.max_payload_length. Applications that accept lower-trust JWS values and rely on joserfc to reject oversized token content during verification have a moderate availability risk. This issue has been fixed in version 1.6.7.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
joserfc is a Python library that provides an implementation of several JSON Object Signing and Encryption (JOSE) standar
Joserfc versions 1.6.2 and earlier fail to validate the PBES2 iteration count parameter in JWE tokens, allowing unauthen
Memory exhaustion in joserfc before 1.7.6 allows remote unauthenticated attackers to force a roughly token-sized extra a
Authentication bypass in the joserfc Python library before 1.7.4 lets remote, unauthenticated attackers submit a JWS Gen
CPU-exhaustion denial of service in joserfc prior to 1.7.5 affects any Python service that passes externally supplied JW
JWT malleability in joserfc versions 1.7.1 and prior allows a low-privileged user holding a valid token to craft alterna
Same weakness CWE-400 – Uncontrolled Resource Consumption
View allSame technique Denial Of Service
View allVendor StatusVendor
SUSE
Severity: Moderate| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
EUVD-2026-37805
GHSA-wphv-vfrh-23q5
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB