CVE-2025-68616CWE-601CWE-918

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

High · published January 19, 2026

CVSS v3.1
7.5
EPSS
1%
Percentile
52.7
In the wild
Unconfirmed
What it is

⚡ A sneaky SSRF vulnerability lurks in WeasyPrint's URL fetching process, allowing access to sensitive internal resources! 🔥 Think of it like a delivery driver who blindly follows the directions given by a client, even if they lead into a restricted area—the driver bypasses all the security checks just because they trust the provided route without questioning it. This oversight could allow attackers to reach internal services like `localhost` or cloud metadata endpoints, which could lead to exposure of sensitive data or unauthorized access—absolutely devastating for security! A malicious actor could exploit this to gather critical data from your network.

Put simply

Think of it like a delivery driver who blindly follows the directions given by a client, even if they lead into a restricted area—the driver bypasses all the security checks just because they trust the provided route without questioning it. Prior to version 68.0, WeasyPrint's `default_url_fetcher` didn’t properly validate redirects, letting HTTP requests slip past security measures set by developers, resulting in SSRF vulnerabilities.

What to do

This oversight could allow attackers to reach internal services like `localhost` or cloud metadata endpoints, which could lead to exposure of sensitive data or unauthorized access—absolutely devastating for security! A malicious actor could exploit this to gather critical data from your network. To mitigate this issue, update to WeasyPrint version 68.0 or later immediately. Additionally, review your `url_fetcher` implementations to ensure they’re working as intended, and consider applying extra checks on redirection behavior. You've got this! With these steps, you’ll reinforce your defenses in no time! 🛡️

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00702 · 52.7th percentile
Weaknesses
CWE-601 · URL Redirection to Untrusted Site ('Open Redirect'); CWE-918 · Server-Side Request Forgery (SSRF)
Published
2026-01-19T15:20Z
EPSS history
Timeline
  • 19 JAN 15:20Z
    WeasyPrint Vulnerable to Server-Side Request Forgery (SSRF) Protection Bypass via HTTP Redirect
    cvelistv5