---
id: CVE-2026-113792
aliases:
  - GHSA-qfv9-64jg-mh7p
title: 'pypdf: Possible infinite loop in PdfWriter.find_outline_item'
summary: 'pypdf: Possible infinite loop in PdfWriter.find_outline_item'
severity: medium
cvss: 6
cwe:
  - CWE-835
vendor: pypdf
product: pypdf
ecosystem: pip
affected:
  - pypdf < 6.20.1
patched:
  - pypdf 6.20.1
published: '2026-10-21'
updated: '2026-10-21'
sourceUpdated: '2026-10-21T16:55:37Z'
source: GHSA
sourceUrl: 'https://github.com/advisories/GHSA-qfv9-64jg-mh7p'
references:
  - url: 'https://github.com/py-pdf/pypdf/security/advisories/GHSA-qfv9-64jg-mh7p'
  - url: 'https://github.com/py-pdf/pypdf/pull/4188'
  - url: >-
      https://github.com/py-pdf/pypdf/commit/c9c35b4471c2eb5fe078094f6c816e69d4ed25a0
  - url: 'https://github.com/py-pdf/pypdf/releases/tag/6.20.1'
  - url: 'https://github.com/advisories/GHSA-qfv9-64jg-mh7p'
tags:
  - ghsa
  - pip
  - cve.org
cvssVector: 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'
cvssSource: cna
ingestedAt: '2026-10-21T16:05:17.682Z'
---

## Overview

### Impact

An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires calling `find_outline_item` on a `PdfWriter`.

### Patches

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

### Workarounds

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

## Affected packages

- `pypdf < 6.20.1`

## Remediation

Upgrade to a patched release:

- `pypdf 6.20.1`
