---
id: CVE-2026-55073
title: WeasyPrint helps web developers to create PDF documents
summary: >-
  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 t…
severity: medium
cvss: 6.2
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-918
  - CWE-1220
vendor: Kozea
product: WeasyPrint
affected:
  - WeasyPrint < 70.0
patched:
  - weasyprint 70.0
published: '2026-09-14'
updated: '2026-09-23'
sourceUpdated: '2026-09-23T17:17:44.630'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-55073'
references:
  - url: >-
      https://github.com/Kozea/WeasyPrint/commit/289e278439b017cd9263b4cd4727026987f86443
    label: security-advisories@github.com
  - url: 'https://github.com/Kozea/WeasyPrint/releases/tag/v70.0'
    label: security-advisories@github.com
  - url: >-
      https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-jf6q-chmf-3h3v
    label: security-advisories@github.com
  - url: >-
      https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-jf6q-chmf-3h3v
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://github.com/Kozea/WeasyPrint'
  - url: 'https://pypi.org/project/weasyprint'
  - url: 'https://github.com/advisories/GHSA-jf6q-chmf-3h3v'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-55073'
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-55073.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-55073'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2533208'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-55073'
tags:
  - nvd
  - cve.org
  - osv
  - pip
  - csaf
  - vex
  - red-hat
  - exploit-available
epss: 0.00197
epssPercentile: 0.08446
aliases:
  - GHSA-jf6q-chmf-3h3v
  - PYSEC-2026-3940
ecosystem: pip
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-16T15:18:39.718323Z'
ingestedAt: '2026-09-12T03:13:01.704Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-55073)

Affected packages:

- `weasyprint < 70.0`

Patched in:

- `weasyprint 70.0`

Source: https://osv.dev/vulnerability/GHSA-jf6q-chmf-3h3v

## Vendor advisories

- **Red Hat VEX** · Moderate · updated 2026-09-18 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-55073.json)
