---
id: CVE-2026-48735
aliases:
  - GHSA-wjqc-6w8f-h24c
title: 'pypdf: Manipulated XMP metadata streams can exhaust RAM'
summary: 'pypdf: Manipulated XMP metadata streams can exhaust RAM'
severity: medium
cwe:
  - CWE-770
vendor: pypdf
product: pypdf
ecosystem: pip
affected:
  - pypdf < 6.12.1
patched:
  - pypdf 6.12.1
published: '2026-06-16'
updated: '2026-06-16'
source: GHSA
sourceUrl: 'https://github.com/advisories/GHSA-wjqc-6w8f-h24c'
references:
  - url: 'https://github.com/py-pdf/pypdf/security/advisories/GHSA-wjqc-6w8f-h24c'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-48735'
  - url: 'https://github.com/py-pdf/pypdf/pull/3796'
  - url: 'https://github.com/py-pdf/pypdf/releases/tag/6.12.1'
  - url: 'https://github.com/advisories/GHSA-wjqc-6w8f-h24c'
tags:
  - ghsa
  - pip
epss: 0.00128
epssPercentile: 0.02833
ingestedAt: '2026-07-07T15:41:58.391Z'
---

## Overview

### Impact

An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires parsing large XMP metadata, possibly with lots of unnecessary elements.

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

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

## Affected packages

- `pypdf < 6.12.1`

## Remediation

Upgrade to a patched release:

- `pypdf 6.12.1`
