All vulnerabilities

PyPI

CVE-2026-119284

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

Severity
Medium
Published
30 Oct 2026
Last changed
30 Oct 2026
Added to UpHeron
23 Nov 2026
Fixed in
1.7.6
Exploit chance
0.3% in the next 30 daysHigher than 23% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Uncontrolled resource consumption (CWE-400)
Also known as
GHSA-9pg5-8c7x-5hfx
Sources
OSV.dev and GitHub

Description

joserfc 1.7.4 defines compact-JWS header, payload, and signature limits, but calls value.split(b".") before validating them. Python bytes.split() copies the attacker-controlled segments, so the current guard allocates roughly one complete payload before rejecting it.

The issue is not that joserfc can prevent the transport layer from receiving a large header. The issue is narrower: once bytes reach deserialize_compact(), the library's existing size guard cannot fulfill its allocation-limiting purpose because attacker-controlled segment copies are created first.

This differs from GHSA-frfh-8v73-gjg4, which concerned embedding already-loaded oversized segments in exception and log messages. Here, the current implementation itself creates an additional payload-sized allocation before its fixed size exception.

From the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
joserfcPyPI · osv:PyPI:joserfc
  • Every version before 1.7.6

About joserfc

Weekly downloads (PyPI)
34,000,578PyPI Stats, 23 Nov 2026

Vulnerabilities in joserfc

In our list
2
Published in the last 12 months
2
Critical, last 12 months
0
High, last 12 months
1
Known exploited
0
Search the list for joserfc

References