GHSA-jm82-fx9c-mx94: pypdf Missing Stream Length Values Ignore Vulnerability
MODERATEGHSA-jm82-fx9c-mx94 is a MODERATE missing stream length values ignore vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting pypdf libraries in the PyPI ecosystem. The issue involves missing stream length values ignore defined limits. Remediation is available by upgrading affected packages to version 6.13.3.
GHSA-jm82-fx9c-mx94 at a Glance
How to Fix GHSA-jm82-fx9c-mx94
To remediate this vulnerability, upgrade all affected pypdf dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install pypdf>=6.13.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show pypdf
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-jm82-fx9c-mx94, inspect your installed packages using pip:
pip show pypdf
Analyze the terminal output to locate any version of pypdf in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.13.3), your application is affected.
Note: The pip show pypdf command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In pypdf, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-jm82-fx9c-mx94 Affected pypdf Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pypdf
|
PyPI |
< 6.13.3
|
6.13.3
|
References
Frequently Asked Questions
What is GHSA-jm82-fx9c-mx94?
Which pypdf versions are affected?
What version fixes GHSA-jm82-fx9c-mx94?
Is pypdf affected?
What CWE is associated with GHSA-jm82-fx9c-mx94?
How can I check PyPI dependencies for GHSA-jm82-fx9c-mx94?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jm82-fx9c-mx94",
"modified" : "2026-06-18T14:28:50Z",
"published" : "2026-06-18T14:28:49Z",
"aliases" : [ ],
"summary" : "pypdf: Missing stream length values ignore defined limits",
"details" : "### Impact\n\nAn attacker who uses this vulnerability can craft a PDF which leads to large memory usage, as `MAX_DECLARED_STREAM_LENGTH` is sometimes ignored. This requires parsing a content stream without a `/Length` value.\n\n### Patches\nThis has been fixed in [pypdf==6.13.3](https://github.com/py-pdf/pypdf/releases/tag/6.13.3).\n\n### Workarounds\nIf you cannot upgrade yet, consider applying the changes from PR [#3871](https://github.com/py-pdf/pypdf/pull/3871).",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "pypdf"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.13.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/py-pdf/pypdf/security/advisories/GHSA-jm82-fx9c-mx94"
}, {
"type" : "WEB",
"url" : "https://github.com/py-pdf/pypdf/pull/3871"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/py-pdf/pypdf"
}, {
"type" : "WEB",
"url" : "https://github.com/py-pdf/pypdf/releases/tag/6.13.3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400", "CWE-770" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-18T14:28:49Z",
"nvd_published_at" : null
}
}