Advisory record · GHSA-r543-q48m-4c9j

WeasyPrint: EPS images reach the Ghostscript interpreter resulting in RCE

CVSS 8.8 HighEPSS 0.0092 · 60th percentile

Published by the GitHub Advisory Database at 7 Oct 2026, 18:05 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
weasyprintPyPI<70.070.0
Identifiers
GHSA-r543-q48m-4c9j · CVE-2026-106443 · PYSEC-2026-4311
Weakness (CWE)
CWE-20
Tags
Published
7 Oct 2026
Updated
15 Oct 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

WeasyPrint versions before 70.0 pass fetched image bytes to Pillow without restricting the format, so EPS or PostScript images can be rasterized by Ghostscript when it is installed on the host. An attacker who can supply image content to a rendered document, such as an img URL, CSS image, SVG reference or data URI, could run PostScript in the Ghostscript interpreter, and the source reports possible remote code execution on Ghostscript builds with known sandbox bypasses. Upgrade to WeasyPrint 70.0 or later. The source gives few details on a workaround, and no other mitigation is listed.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
8.8 High 3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0092, the 60th percentile, on 8 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:08 UTC First seen by agentprime
  2. 31 Oct 2026, 14:08 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.