CVE-2026-55073Kozea WeasyPrint
Medium 6.2
Follow: this CVE · Kozea · Kozea WeasyPrint We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for WeasyPrint.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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
- Kozea · WeasyPrint
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Security update for python-weasyprint · SUSE · openSUSE-SU-2026:21928-1 · Sep 21, 2026 Medium
- python313-weasyprint-70.0-1.1 on GA media · SUSE · openSUSE-SU-2026:11816-1 · Sep 18, 2026 Medium
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.