Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. weasyprint
  4. ›
  5. CVE-2026-106443

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

October 7, 2026

This was found during a pentest, funded by the NLNnet foundation, conducted by Stefan Vink from Radically Open Security and the only High issue found.

WeasyPrint passes fetched image bytes directly to Pillow’s generic format dispatcher without restricting the input format. When Ghostscript is installed on the host, Pillow’s EpsImagePlugin invokes it to rasterize attacker-controlled EPS/PS input. Any content that can supply an image to WeasyPrint (an URL, CSS image value, SVG image reference, or data URI) can therefore drive untrusted PostScript into an external interpreter. On hosts running a Ghostscript version with a known -dSAFER bypass, this yields remote code execution.

References

  • github.com/Kozea/WeasyPrint/commit/39cd37ce1610bd890388e26591c569db1cbab542
  • github.com/Kozea/WeasyPrint/releases/tag/v70.0
  • github.com/Kozea/WeasyPrint/security/advisories/GHSA-r543-q48m-4c9j
  • github.com/advisories/GHSA-r543-q48m-4c9j
  • nvd.nist.gov/vuln/detail/CVE-2026-106443

Code Behaviors & Features

Detect and mitigate CVE-2026-106443 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 70.0.0

Fixed versions

  • 70.0.0

Solution

Upgrade to version 70.0.0 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

pypi/weasyprint/CVE-2026-106443.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:22 +0000.