Live threats

All CVEs / Kozea

CVE-2026-55073Kozea WeasyPrint

Medium 6.2

Priority
37
CVSS 3.1
6.2
EPSS
—
Auth required
Yes
Published
Sep 14, 2026
Updated
Sep 23, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-918
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

WeasyPrint helps web developers to create PDF documents. Prior to 70.0, server-side applications that configure a restrictive url_fetcher and pass attacker-influenced values to HTML.write_pdf() can have the restriction bypassed through the xmp_metadata or stylesheets options. In weasyprint/pdf/init.py, xmp_metadata calls select_source() without the document url_fetcher, allowing an accessible local file to be read and embedded verbatim in the output PDF. In weasyprint/document.py, stylesheets constructs CSS() without the document url_fetcher, allowing local or internal resource loading and propagating the permissive fetcher through nested CSS imports and url() references. The stylesheets channel applies fetched resources but does not by itself disclose stylesheet comments verbatim. This issue is fixed in version 70.0.

Original NVD text.

What to do

  1. Apply the vendor's security update for WeasyPrint.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI weasyprint < 70.0 70.0 pip install "weasyprint>=70.0"
PyPI weasyprint < 70.0 70.0 pip install "weasyprint>=70.0"

Per OSV / GitHub Advisories (GHSA-jf6q-chmf-3h3v, PYSEC-2026-3940). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.