CVE-2025-68616: CWE-601: URL Redirection to Untrusted Site ('Open Redirect') in Kozea WeasyPrint
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.
AI Analysis
Technical Summary
CVE-2025-68616 is a high-severity vulnerability in Kozea WeasyPrint affecting versions before 68.0. The issue arises from the default_url_fetcher implementation, where the urllib library follows HTTP redirects automatically without re-checking the new destination against developer-defined SSRF protections. This behavior enables attackers to bypass SSRF restrictions and access internal network resources, including localhost and cloud metadata endpoints. The vulnerability is fixed in version 68.0. The Red Hat advisory confirms the vulnerability and the availability of a patch in the updated version.
Potential Impact
Successful exploitation allows an unauthenticated attacker to bypass SSRF protections and access internal network resources that should be restricted, potentially exposing sensitive internal services or cloud metadata endpoints. The CVSS 3.1 base score is 7.5 (High), reflecting network attack vector, low attack complexity, no privileges required, no user interaction, and high confidentiality impact with no integrity or availability impact.
Mitigation Recommendations
Upgrade WeasyPrint to version 68.0 or later, where the vulnerability has been patched. The vendor advisory from Red Hat confirms that the issue is fixed in this version. No additional mitigation is required once the patch is applied.
CVE-2025-68616: CWE-601: URL Redirection to Untrusted Site ('Open Redirect') in Kozea WeasyPrint
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.
CVSS v3.1
Score 7.5high
Affected software
Kozea
WeasyPrint
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-68616 is a high-severity vulnerability in Kozea WeasyPrint affecting versions before 68.0. The issue arises from the default_url_fetcher implementation, where the urllib library follows HTTP redirects automatically without re-checking the new destination against developer-defined SSRF protections. This behavior enables attackers to bypass SSRF restrictions and access internal network resources, including localhost and cloud metadata endpoints. The vulnerability is fixed in version 68.0. The Red Hat advisory confirms the vulnerability and the availability of a patch in the updated version.
Potential Impact
Successful exploitation allows an unauthenticated attacker to bypass SSRF protections and access internal network resources that should be restricted, potentially exposing sensitive internal services or cloud metadata endpoints. The CVSS 3.1 base score is 7.5 (High), reflecting network attack vector, low attack complexity, no privileges required, no user interaction, and high confidentiality impact with no integrity or availability impact.
Mitigation Recommendations
Upgrade WeasyPrint to version 68.0 or later, where the vulnerability has been patched. The vendor advisory from Red Hat confirms that the issue is fixed in this version. No additional mitigation is required once the patch is applied.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2025-12-19T14:58:47.824Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2025-68616","vendor":"Red Hat"}]
Threat ID: 696e50b9d302b072d9ca67ad
Added to database: 01/19/2026, 15:41:45 UTC
Last enriched: 07/15/2026, 08:22:37 UTC
Last updated: 09/10/2026, 22:23:26 UTC
Views: 209
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.