CVE catalog

CVE-2026-55073

weasyprint: CVE-2026-55073

[CVE catalog]

Severity
Medium · CVSS 6.2CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.22% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianweasyprintsid70.0-1fixed
Debianweasyprintforky70.0-1fixed
Debianweasyprinttrixie62.3-1vulnerable
Debianweasyprintbookworm57.2-1vulnerable
PyPIweasyprintNot reported70.0fixed
PipweasyprintNot reported70.0fixed
Opensusepython-weasyprintleap 16.065.1-bp160.4.1fixed
Opensusepython-weasyprinttumbleweed70.0-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianweasyprintsourcesid70.0-1not yet assignedNot reported[1148178]
Debianweasyprintsourceforky70.0-1not yet assignedNot reported[1148178]
Debianweasyprintsourcetrixie(unfixed)not yet assignedNot reported[1148178]
Debianweasyprintsourcebookworm(unfixed)not yet assignedNot reported[1148178]
PyPIweasyprintPyPINot reported70.0Not reportedPYSEC-2026-3940Not reported
PipweasyprintpipNot reported70.0Not reportedGHSA-JF6Q-CHMF-3H3VNot reported
Opensusepython-weasyprintrpmleap 16.065.1-bp160.4.1Not reportedOPENSUSE-SU-2026:21928-1Not reported
Opensusepython-weasyprintrpmtumbleweed70.0-1.1Not reportedOPENSUSE-SU-2026:11816-1Not reported

[Debian bug #1148178]

Notes

[trixie] weasyprint: Minor issue [bookworm] weasyprint: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [weasyprint]Affected
    Details (2)
    • 57.2-1 · all · bookworm

      Affected

      dsa · weasyprint · debian · bookworm; dsa · weasyprint · debian · 12

    • 57.2-1 · all · bookworm

      Affected

      dsa · weasyprint · debian · bookworm; dsa · weasyprint · debian · 12

[Debian 13 (Trixie)]

  • [weasyprint]Affected
    Details (2)
    • 62.3-1 · all · trixie

      Affected

      dsa · weasyprint · debian · 13

    • 62.3-1 · all · trixie

      Affected

      dsa · weasyprint · debian · 13

[openSUSE Tumbleweed]

  • Source package: [python-weasyprint]

    Details (1)
    • 69.0-1.1 · noarch · tumbleweed

      Unknown · Fixed: 70.0-1.1

      Version impact unknown

      dsa · python-weasyprint · opensuse · tumbleweed

  • Source package: [python-weasyprint]

    Details (1)
    • 69.0-1.1 · noarch · tumbleweed

      Unknown · Fixed: 70.0-1.1

      Version impact unknown

      dsa · python-weasyprint · opensuse · tumbleweed

Observed:

References