cve.bz

CVE-2026-106443 kozea weasyprint: Improper Input Validation

8.8 highEPSS 0.9%Fix available

High (8.8) in kozea weasyprint. EPSS 0.9% estimated probability of exploitation activity in the next 30 days. Fixed in weasyprint 70.0.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.9% (unchanged from 0.9% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 61st percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-10-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-106443 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-106443?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-106443?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-106443 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Kozea WeasyPrint< 70.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-r543-q48m-4c9jPyPIweasyprint<70.070.0
PYSEC-2026-4311PyPIweasyprint<70.070.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13weasyprintno fix listedDEBIAN-CVE-2026-106443
Debian14weasyprint70.0-1DEBIAN-CVE-2026-106443
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 2 moreweasyprintno fix listedUBUNTU-CVE-2026-106443

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

An IMPORTANT severity flaw was found in WeasyPrint, a Python library for converting HTML and CSS documents to PDF that is shipped in Red Hat Ansible Automation Platform 2.5 via the automation-dashboard container image. When WeasyPrint renders documents with external image references (HTML img URLs, CSS image values, SVG image references, and data URIs), the image-loading path passes the fetched image bytes to Pillow's generic image dispatcher without excluding unsafe formats such as Encapsulated PostScript (EPS). On hosts with Ghostscript installed, Pillow's EpsImagePlugin invokes the Ghostscript interpreter for attacker-controlled PostScript, which can lead to arbitrary code execution when the installed Ghostscript version has a usable sandbox bypass; hosts without Ghostscript installed do not reach this rasterization path and are not vulnerable. Red Hat rates this flaw IMPORTANT with a CVSS 3.1 score of 8.1 (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H), using a higher attack complexity than the upstream CVEORG score of 8.8 because exploitation requires Ghostscript to be installed on the host together with a usable Ghostscript sandbox bypass. The Red Hat Ansible Automation Platform affect is delegated to the responsible product team, which determined that the WeasyPrint version shipped in the automation-dashboard container already contains the upstream fix, so the vulnerable code is not present in the shipped product.

Red Hat's mitigation

This flaw can be mitigated by removing Ghostscript from hosts where WeasyPrint renders untrusted documents: the vulnerable code path requires Pillow's EpsImagePlugin to invoke the Ghostscript interpreter, and hosts without Ghostscript installed never reach the PostScript rasterization path. Exposure can also be reduced by restricting WeasyPrint to render only trusted documents, or by blocking external image references (img URLs, CSS image values, SVG image references, and data URIs) from untrusted sources. For full remediation, upgrade to a version of WeasyPrint that contains the upstream fix.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2ansible-automation-platform/automation-dashboard-rhel9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-106443.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON