WeasyPrint Vulnerable to Server-Side Request Forgery (SSRF) Protection Bypass via HTTP Redirect
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Spoofing, Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-601, CWE-918 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Kozea | WeasyPrint | before 68.0 | 68.0 | Patch available | CNA |
| — | weasyprint (PyPI) | before 68.0 | 68.0 | Patch available | GHSA-983w-rhvv-gwmv |
- WeasyPrint VendorKozea Affected before 68.0 Fixed in 68.0 Patch available CNA
- weasyprint (PyPI) Vendor— Affected before 68.0 Fixed in 68.0 Patch available GHSA-983w-rhvv-gwmv
Remediation
- Fix · CNA WeasyPrint (Kozea) Fixed in 68.0
- Fix · GHSA-983w-rhvv-gwmv weasyprint (PyPI) Fixed in 68.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet |
Timeline
- 2026-10-02 Threatist record created from CVE-2025-68616
- 2026-10-03 Alias added: GHSA-983w-rhvv-gwmv
References
More Kozea Weasyprint vulnerabilities
- TI-2024-18760 WeasyPrint allows the attachment of arbitrary files and URLs to a PDF CVSS 3.1HIGH 7.4
Sources
- CVE-2025-68616 · CVE Program
- CVE-2025-68616 · NVD
- FIRST EPSS
- GHSA-983w-rhvv-gwmv · GitHub Advisory Database · CC BY 4.0
- CVE-2025-68616 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences