CVE-2025-68616Kozea Weasyprint
High 7.5 No auth needed
Follow: this CVE · Kozea · Kozea Weasyprint We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Jan 19, 2026
- Updated
- Jul 15, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Weasyprint.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | weasyprint |
< 68.0 |
68.0 |
pip install "weasyprint>=68.0" |
| PyPI | weasyprint |
< 68.0 |
68.0 |
pip install "weasyprint>=68.0" |
Per OSV / GitHub Advisories (GHSA-983w-rhvv-gwmv, PYSEC-2026-2034). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| kozea | weasyprint | < 68.0 |
Official advisories
- python311-weasyprint-68.0-1.1 on GA media · SUSE · openSUSE-SU-2026:10079-1 · Jan 21, 2026 High
- Security update for python-weasyprint · SUSE · openSUSE-SU-2026:20069-1 · Jan 20, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Third Party Advisory
- access.redhat.com
- bugzilla.redhat.com
- security.access.redhat.com