Advisory

GHSA-ccgm-3xw4-h5p8

Also known as: CVE-2021-29421, PYSEC-2021-34

Summary

Improper Restriction of XML External Entity Reference in pikepdf

Details

models/metadata.py in the pikepdf package 1.3.0 through 2.9.2 for Python allows XXE when parsing XMP metadata entries.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-04-20 16:30 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

pikepdf

PyPI · All systems

Affected

  • introduced 1.3.0, fixed 2.10.0 (ecosystem)

Fixed versions

2.10.0

Fix

  • Fixed version 2.10.0
    pip install --upgrade pikepdf==2.10.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences