---
id: CVE-2026-119206
aliases:
  - GHSA-42gh-23hr-vphw
title: pypdf has possible long runtimes when retrieving page labels
summary: pypdf has possible long runtimes when retrieving page labels
severity: high
vendor: pypdf
product: pypdf
ecosystem: pip
affected:
  - pypdf < 6.21.3
patched:
  - pypdf 6.21.3
published: '2026-10-30'
updated: '2026-10-30'
sourceUpdated: '2026-10-30T23:15:05.410552661Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-42gh-23hr-vphw'
references:
  - url: 'https://github.com/py-pdf/pypdf/security/advisories/GHSA-42gh-23hr-vphw'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-119206'
  - url: 'https://github.com/py-pdf/pypdf/pull/4251'
  - url: >-
      https://github.com/py-pdf/pypdf/commit/b891fef37000cd86baa6e9848a3387d080b3b03e
  - url: 'https://github.com/py-pdf/pypdf'
  - url: 'https://github.com/py-pdf/pypdf/releases/tag/6.21.3'
  - url: 'https://github.com/advisories/GHSA-42gh-23hr-vphw'
tags:
  - osv
  - pip
  - ghsa
epss: 0.00221
epssPercentile: 0.12745
cwe:
  - CWE-400
ingestedAt: '2026-10-30T23:11:25.769Z'
---

## Overview

### Impact

An attacker who uses this vulnerability can craft a PDF which leads to large runtimes. This requires retrieving the page labels of a file.

### Patches

This has been fixed in [pypdf==6.21.3](https://github.com/py-pdf/pypdf/releases/tag/6.21.3).

### Workarounds

If you cannot upgrade yet, consider applying the changes from PR [#4251](https://github.com/py-pdf/pypdf/pull/4251).

## Affected packages

- `pypdf < 6.21.3`

## Remediation

Upgrade to a patched release:

- `pypdf 6.21.3`
