CVE-2026-106443 Details
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.
A remote code execution vulnerability exists in WeasyPrint versions prior to 70.0. The issue arises in the image-loading process, where fetched image bytes from various sources are passed to Pillow's image dispatcher without proper validation. This oversight allows EPS or PostScript images to be processed by Pillow's EpsImagePlugin, which can invoke the Ghostscript interpreter. If the installed Ghostscript version has a known sandbox bypass, this could lead to remote code execution. The vulnerability is not present on systems without Ghostscript.
WeasyPrint has released a patch for this vulnerability in version 70.0. Users are advised to upgrade to this version.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 6, 2026CISA-ADP
Assessed Oct 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Kozea/WeasyPrint/commit/39cd37ce1610bd890388e26591c569db1cbab542 | [email protected] | Source CodeVendor |
| https://github.com/Kozea/WeasyPrint/releases/tag/v70.0 | [email protected] | Release NotesVendor |
| https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-r543-q48m-4c9j | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-20 | Improper Input Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| WeasyPrint | <= 69.0 |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 6, 2026 | CVE Modified | CISA-ADP |
| Oct 6, 2026 | New CVE Received | [email protected] |
Volerion