{"id":"CVE-2025-68616","published":"2026-01-19T15:20:23Z","modified":"2026-07-15T01:24:59Z","title":"WeasyPrint Vulnerable to Server-Side Request Forgery (SSRF) Protection Bypass via HTTP Redirect","vendor":"Kozea","product":"WeasyPrint","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00702,"percentile":0.5415,"provenance":"source"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"},{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-983w-rhvv-gwmv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Kozea/WeasyPrint/commit/b6a14f0f3f4ce9c0c75c1a2d73cb1c5d43f0e565","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-68616","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2430858","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-68616.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":21.1,"factors":[{"name":"EPSS percentile","points":10.83},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.25}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-07-18","earliestUrl":"https://github.com/rauljvc8/CVE-2025-68616-Detecting-and-Patching-an-SSRF-in-WeasyPrint-with-Wazuh","repos":[{"name":"rauljvc8/CVE-2025-68616-Detecting-and-Patching-an-SSRF-in-WeasyPrint-with-Wazuh","url":"https://github.com/rauljvc8/CVE-2025-68616-Detecting-and-Patching-an-SSRF-in-WeasyPrint-with-Wazuh","stars":0,"created":"2026-07-18"}]},"first":{"date":"2026-07-18","source":"PoC-in-GitHub","url":"https://github.com/rauljvc8/CVE-2025-68616-Detecting-and-Patching-an-SSRF-in-WeasyPrint-with-Wazuh"},"provenance":"source"},"vendorSlug":"kozea","affectedVersions":[{"vendor":"Kozea","product":"WeasyPrint","versions":["< 68.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-01-20T15:42:42.675622Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"weasyprint","vulnerableRanges":["<68.0"],"patched":["68.0"],"from":["GHSA-983w-rhvv-gwmv","PYSEC-2026-2034"],"provenance":"source"}],"summary":{"text":"WeasyPrint, a Python library from Kozea that generates PDF documents, contains a flaw in its default_url_fetcher where automatic HTTP redirect following via urllib bypasses developer-implemented URL restrictions. An attacker with network access and no authentication or user interaction, able to get WeasyPrint to fetch a URL they control, can use a redirect to reach internal resources such as localhost services or cloud metadata endpoints, even when a custom url_fetcher was meant to block them.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:24:20Z"},"euvd":{"id":"EUVD-2025-206301","exploited":false,"provenance":"source"}}