CVE-2025-68616 Details
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.
A server-side request forgery (SSRF) protection bypass vulnerability has been identified in WeasyPrint versions prior to 68.0. This issue allows attackers to access internal network resources, such as localhost services or cloud metadata endpoints, even when a custom url_fetcher has been implemented to block such access. The vulnerability arises because the default url_fetcher in WeasyPrint's urllib library automatically follows HTTP redirects without re-validating the new destination against the developer's security policy, creating a time-of-check to time-of-use (TOCTOU) vulnerability.
Users are advised to upgrade WeasyPrint to version 68.0 or later. If a custom URL fetcher is used, it should be updated to the latest version and the default_url_fetcher function should be replaced with the new URLFetcher class.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2025-68616 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2430858 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-68616.json | redhat-SADP | |
| https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-983w-rhvv-gwmv | CISA-ADP | ExploitThird Party Advisory |
| https://github.com/Kozea/WeasyPrint/commit/b6a14f0f3f4ce9c0c75c1a2d73cb1c5d43f0e565 | [email protected] | Patch |
| https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-983w-rhvv-gwmv | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-601 | URL Redirection to Untrusted Site ('Open Redirect') | [email protected] |
| CWE-918 | Server-Side Request Forgery (SSRF) | redhat-SADP |
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| kozea weasyprint | < 68.0 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 18, 2026 | Initial Analysis | [email protected] |
| Jan 20, 2026 | CVE Modified | CISA-ADP |
| Jan 19, 2026 | New CVE Received | [email protected] |