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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | weasyprint | no fix listed | DEBIAN-CVE-2026-106443 |
| Debian:13 | weasyprint | no fix listed | DEBIAN-CVE-2026-106443 |
| Debian:14 | weasyprint | 70.0-1 | DEBIAN-CVE-2026-106443 |
| PyPI | weasyprint | 70.0 | GHSA-r543-q48m-4c9j |
| PyPI | weasyprint | 70.0 | PYSEC-2026-4311 |
| Ubuntu:22.04:LTS | weasyprint | no fix listed | UBUNTU-CVE-2026-106443 |
| Ubuntu:24.04:LTS | weasyprint | no fix listed | UBUNTU-CVE-2026-106443 |
| Ubuntu:26.04:LTS | weasyprint | no fix listed | UBUNTU-CVE-2026-106443 |
| Ubuntu:26.10 | weasyprint | no fix listed | UBUNTU-CVE-2026-106443 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-r543-q48m-4c9j x_refsource_CONFIRM
- https://github.com/Kozea/WeasyPrint/commit/39cd37ce1610bd890388e26591c569db1cbab542 x_refsource_MISC
- https://github.com/Kozea/WeasyPrint/releases/tag/v70.0 x_refsource_MISC