CVE-2026-106443 · GHSA-r543-q48m-4c9j
WeasyPrint: EPS images reach the Ghostscript interpreter resulting in RCE
- Risk score
- 68/100
- CVSS
- 8.8 v3.1
- Exploit chance (30 days)
- 0.7%
- Published
- 6 Oct 2026
Open in the live forecast Today's forecast
What to know
- What it is
- 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 Gho…
- Affected
- WeasyPrint (pip) <= 69.0
- Fix
- Upgrade WeasyPrint to 70.0 or later.
- Exploitation
- No known exploitation
Why it is Amber
- CVSS 8.8 high
- On your watchlist: PyPI
Affected packages
| Package | Ecosystem | Vulnerable | Fixed in |
|---|---|---|---|
| WeasyPrint | pip | <= 69.0 | 70.0 |
References
- https://github.com/advisories/GHSA-r543-q48m-4c9j
- https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-r543-q48m-4c9j
- https://nvd.nist.gov/vuln/detail/CVE-2026-106443
- https://github.com/Kozea/WeasyPrint/commit/39cd37ce1610bd890388e26591c569db1cbab542
- https://github.com/Kozea/WeasyPrint/releases/tag/v70.0
- https://github.com/advisories/GHSA-r543-q48m-4c9j
Original 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.
Last activity 6 Oct 2026. Patch Forecast updates every hour.