CVE-2026-119284

joserfc: Compact JWS size guard allocates attacker-controlled segments before rejection

Published Oct 29, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
joserfc is a Python library that provides an implementation of several JSON Object Signing and Encryption (JOSE) standards. Prior to 1.7.6, joserfc compact JWS deserialization calls bytes.split() before enforcing the existing aggregate segment-size limits. When attacker-controlled compact serialization bytes reach deserialize_compact(), the split creates copies of the header, payload, and signature segments before ExceededSizeError rejects them, causing an additional allocation approximately proportional to the supplied token. Requests that exhaust available process memory can therefore cause an availability failure even though signature verification fails. This issue is fixed in version 1.7.6.

Analysis

AI-generated

Technical impact

joserfc is a Python library that implements JOSE standards. In versions prior to 1.7.6, its compact JWS deserialization performs a bytes.split() before checking aggregate segment-size limits. If an attacker supplies a large compact serialization, the split creates copies of the header, payload, and signature segments before the library throws an ExceededSizeError, memory proportional to the token size. This additional allocation can exhaust process memory and cause an availability failure even though signature verification ultimately fails. The flaw is a classic resource exhaustion vulnerability (CWE-400) and is also characterized by excessive allocation of user‑controlled data (CWE-770).

Affected Systems

The vulnerable product is authlib's joserfc library, versions earlier than 1.7.6. Any application that incorporates joserfc—including web services, authentication engines, or third‑party libraries—must verify whether it uses a version before this release.

Risk and Exploitability

The CVSS base score is 6.9, reflecting a moderate severity. No EPSS score is available, but the exploit requires only that an attacker can supply a JWS token to the parsing code, which is a common scenario for services accepting JWTs. The vulnerability is not listed in the CISA KEV catalog. Attackers can trigger the flaw by sending oversized tokens over the network to the parsing endpoint, making the attack feasible and potentially impactful if memory limits are reached. The flaw involves uncontrolled memory allocation (CWE-400) and excessive resource consumption (CWE-770).

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade joserfc to version 1.7.6 or newer, which enforces segment-size limits before allocation.
  • Redeploy any applications or services that use joserfc to ensure the updated library is loaded.
  • Implement an application‑level size check to reject unusually large tokens before they reach joserfc, reducing the attack surface.

Generated by OpenCVE AI on October 30, 2026 at 13:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-9pg5-8c7x-5hfx joserfc: Compact JWS size guard allocates attacker-controlled segments before rejection
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-770
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Authlib
Authlib joserfc
Vendors & Products Authlib
Authlib joserfc
Type Values Removed Values Added
Description joserfc is a Python library that provides an implementation of several JSON Object Signing and Encryption (JOSE) standards. Prior to 1.7.6, joserfc compact JWS deserialization calls bytes.split() before enforcing the existing aggregate segment-size limits. When attacker-controlled compact serialization bytes reach deserialize_compact(), the split creates copies of the header, payload, and signature segments before ExceededSizeError rejects them, causing an additional allocation approximately proportional to the supplied token. Requests that exhaust available process memory can therefore cause an availability failure even though signature verification fails. This issue is fixed in version 1.7.6.
Title joserfc: Compact JWS size guard allocates attacker-controlled segments before rejection
Weaknesses CWE-400
References
Metrics cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 30, 2026, 5:05 PM
Reserved
Oct 29, 2026, 6:50 PM
Status
Deferred
Published
Oct 29, 2026, 10:17 PM
Modified
Oct 30, 2026, 5:17 PM
Severity
Moderate
Public date
Oct 29, 2026, 9:33 PM