Quick answers
- Is CVE-2026-55073 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-55073 being exploited in the wild.
- How severe is CVE-2026-55073?
- Medium severity, with a CVSS score of 6.2, published 14 September 2026.
- Which products and versions are affected?
- Kozea Weasyprint < 70.0; weasyprint (PyPI) ECOSYSTEM:introduced=0,fixed=70.0.
- Is there a fix for CVE-2026-55073?
- Yes. weasyprint (PyPI): upgrade to 70.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-55073 attacked?
- It is attacked over the network.
- Am I affected by CVE-2026-55073?
- Check whether you run Kozea Weasyprint or weasyprint (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- weasyprint (PyPI): upgrade to 70.0 or later
pip install "weasyprint>=70.0"
Technical details
WeasyPrint provides a `url_fetcher` parameter to restrict which resources (local files, internal hosts) can be loaded during PDF rendering. However, the `write_pdf()` method has two code paths that ignore this restriction: (1) **`xmp_metadata`** parameter calls `select_source()` without passing the document's url_fetcher, causing a permissive default fetcher to be instantiated instead. Attacker-controlled file:// URLs are fetched and their raw bytes are embedded verbatim in the output PDF, enabling arbitrary local file disclosure. (2) **`stylesheets`** parameter similarly omits the url_fetcher argument when instantiating CSS objects, allowing blocked file:// URLs to be loaded and applied. This is transitive—CSS @import rules inherit the permissive fetcher and propagate the bypass through the entire stylesheet import graph. Both vulnerabilities require the application to forward untrusted user input into these parameters, which is common in server-side PDF generation services (invoice/report generators, document SaaS platforms). No network requirements; attacks work against any file readable by the rendering process. Fixed in WeasyPrint 70.0 by routing both call sites through the document's url_fetcher.
Affected products
- Kozea WeasyPrint < 70.0
Identifiers
- CVE-2026-55073
- GHSA-jf6q-chmf-3h3v
- PYSEC-2026-3940
Timeline
- 2026-09-09: disclosed: Vulnerability disclosed in GitHub Advisory GHSA-jf6q-chmf-3h3v / CVE-2026-55073
- 2026-09-09: patched: Fixed in WeasyPrint version 70.0