CVE-2026-106443 WeasyPrint: EPS images reach the Ghostscript interpreter resulting in RCE
Attackers can achieve remote code execution by supplying malicious EPS images to WeasyPrint if Ghostscript is installed on the host.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-106443?
CVE-2026-106443 is a high-severity code injection vulnerability in Kozea WeasyPrint, published on 6 Oct 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-20
Which versions are affected by CVE-2026-106443?
3 open source packages ship an affected version, including weasyprint and WeasyPrint.
| Package | Affected | Fixed in |
|---|---|---|
weasyprint PyPI | All versions | 70.0 |
weasyprint PyPI | All versions | 70.0 |
WeasyPrint PyPI | All versions | 70.0 |
How do I fix CVE-2026-106443?
Upgrade weasyprint to 70.0 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-106443 being exploited?
There is no known exploitation of CVE-2026-106443 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2026-106443, GHSA-r543-q48m-4c9j, PYSEC-2026-4311, UBUNTU-CVE-2026-106443.