Skip to content
OpenAdvisories
High · 7.5 Public exploit CVE-2025-68616 EUVD-2025-206301GHSA-983w-rhvv-gwmvPYSEC-2026-2034

WeasyPrint Vulnerable to Server-Side Request Forgery (SSRF) Protection Bypass via HTTP Redirect

Published Jan 19, 2026 · Updated Jul 15, 2026 · Assigned by GitHub_M

Description

WeasyPrint helps web developers to create PDF documents. Prior to version 68.0, a server-side request forgery (SSRF) protection bypass exists in WeasyPrint's `default_url_fetcher`. The vulnerability allows attackers to access internal network resources (such as `localhost` services or cloud metadata endpoints) even when a developer has implemented a custom `url_fetcher` to block such access. This occurs because the underlying `urllib` library follows HTTP redirects automatically without re-validating the new destination against the developer's security policy. Version 68.0 contains a patch for the issue.

Affected products

VendorProductAffectedFixed
Kozea WeasyPrint < 68.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 weasyprint 69.0-1 —
Debian 13 weasyprint No fix yet —
Debian 12 weasyprint No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 weasyprint No fix yet —
Ubuntu 26.04 LTS weasyprint No fix yet —
Ubuntu 25.10 weasyprint No fix yet —
Ubuntu 24.04 LTS weasyprint No fix yet —
Ubuntu 22.04 LTS weasyprint No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS weasyprint No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-weasyprint 68.0-1.1 openSUSE-SU-2026:10079-1
openSUSE Leap 16.0 python-weasyprint 65.1-bp160.2.1 openSUSE-SU-2026:20069-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI weasyprint < 68.0 68.0 GHSA-983w-rhvv-gwmv

Advisories 2

References