Vulnerability · Published Oct 6, 2026 · Assigned by GitHub_M

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

High 8.8

In plain English

A high-severity improper input validation in WeasyPrint from Kozea. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 60% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)0.9%top 39.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12weasyprintno fix listedDEBIAN-CVE-2026-106443
Debian:13weasyprintno fix listedDEBIAN-CVE-2026-106443
Debian:14weasyprint70.0-1DEBIAN-CVE-2026-106443
PyPIweasyprint70.0GHSA-r543-q48m-4c9j
PyPIweasyprint70.0PYSEC-2026-4311
Ubuntu:22.04:LTSweasyprintno fix listedUBUNTU-CVE-2026-106443
Ubuntu:24.04:LTSweasyprintno fix listedUBUNTU-CVE-2026-106443
Ubuntu:26.04:LTSweasyprintno fix listedUBUNTU-CVE-2026-106443
Ubuntu:26.10weasyprintno fix listedUBUNTU-CVE-2026-106443

Affected products (as reported)

VendorProductVersions
Kozea WeasyPrint < 70.0

Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References