Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. weasyprint
  4. ›
  5. CVE-2026-55073

CVE-2026-55073: weasyprint Has Server-Side Request Forgery (SSRF)

September 9, 2026

url_fetcher is WeasyPrint’s documented mechanism for restricting resource loading - applications use it to block file://, internal hosts, etc. when rendering untrusted input.

Two write_pdf() channels ignore the document’s url_fetcher and build a fresh default URLFetcher() instead. A restrictive fetcher set on HTML() is silently bypassed for:

  • xmp_metadata=[url] - the URL is fetched and the bytes are embedded verbatim in the output PDF. This is an arbitrary local file read when the path is attacker-influenced.
  • stylesheets=[url_or_path] - the sheet is fetched and applied. This is SSRF / arbitrary local-or-internal resource loading, and it is transitive: the permissive fetcher propagates through the whole @import / url() graph.

Applications affected are those that (1) run WeasyPrint server-side, (2) set a restrictive url_fetcher to block file:// or internal hosts, and (3) forward an attacker-influenced URL/path into either parameter - e.g. PDF rendering APIs, invoice/report generators, document SaaS.

References

  • github.com/Kozea/WeasyPrint/releases/tag/v70.0
  • github.com/Kozea/WeasyPrint/security/advisories/GHSA-jf6q-chmf-3h3v
  • github.com/advisories/GHSA-jf6q-chmf-3h3v
  • nvd.nist.gov/vuln/detail/CVE-2026-55073

Code Behaviors & Features

Detect and mitigate CVE-2026-55073 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 70.0.0

Fixed versions

  • 70.0.0

Solution

Upgrade to version 70.0.0 or above.

Impact 6.2 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

pypi/weasyprint/CVE-2026-55073.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:55 +0000.