CVE-2025-68616: Weasyprint Ssrf Urlfetcher Redirects

In WeasyPrint before 68.0, URL fetching allowed automatic HTTP redirects, potentially bypassing SSRF protections when using custom URL fetchers. `default_url_fetcher` is vulnerable and deprecated. Use `URLFetcher` with `allow_redirects=False` to securely control redirection and prevent SSRF bypasses.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2025-68616-weasyprint-ssrf-urlfetcher-redirects --engine opengrep

Description

In WeasyPrint before 68.0, URL fetching allowed automatic HTTP redirects, potentially bypassing SSRF protections when using custom URL fetchers. `default_url_fetcher` is vulnerable and deprecated. Use `URLFetcher` with `allow_redirects=False` to securely control redirection and prevent SSRF bypasses.