Skip to main content
EPSS 0.7%top 50%

CVE-2025-68616: CWE-601: URL Redirection to Untrusted Site ('Open Redirect') in Kozea WeasyPrint

0
High
VulnerabilityCVE-2025-68616cvecve-2025-68616cwe-601cwe-918
Published: 01/19/2026 (01/19/2026, 15:20:23 UTC)
Source: CVE Database V5
Vendor/Project: Kozea
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected software

Kozea

WeasyPrint

Affected versions
<68.0
weasyprint
pkg:pypi/weasyprint
Affected versions
<68.0

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

AILast updated: 07/15/2026, 08:22:37 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses