Improper Validation of Specified Quantity in Input Affecting pypdf package, versions [,6.10.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (13th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-PYPDF-16081092
  • published21 Apr 2026
  • disclosed15 Apr 2026
  • creditalpakalee

Introduced: 15 Apr 2026

NewCVE-2026-41168  (opens in a new tab)
CWE-1284  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade pypdf to version 6.10.1 or higher.

Overview

pypdf is an A pure-python PDF library capable of splitting, merging, cropping, and transforming PDF files

Affected versions of this package are vulnerable to Improper Validation of Specified Quantity in Input through the PdfReader object stream and xref stream parsers in pypdf/_reader.py. An attacker can trigger excessive allocation and recursive page/object processing by supplying a crafted PDF with oversized /N or /Index values in an object stream or cross-reference stream. This can crash or hang the parser as it tries to read far more entries than the stream contains, preventing the user from opening the document and consuming CPU and memory during parsing.

CVSS Base Scores

version 4.0
version 3.1