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
- 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.
Affected software
| Software | Affected versions |
|---|---|
joserfcPyPI · osv:PyPI:joserfc |
|
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
- CVE-2026-119283joserfc: Unbounded JWE General JSON `recipients` Array Leads to CPU Exhaustion (DoS) via Repeated RSA Private-Key DecryptionHigh 7.5 30 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-119284
- GitHub Advisory Database https://github.com/advisories/GHSA-9pg5-8c7x-5hfx