# CVE-2025-68616: WeasyPrint Vulnerable to Server-Side Request Forgery (SSRF) Protection Bypass via HTTP Redirect

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.70%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-19T15:20:23.702Z
- Modified: 2026-07-15T02:17:50.380Z
- Also known as: GHSA-983w-rhvv-gwmv, PYSEC-2026-2034
- Weaknesses: CWE-601, CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Kozea WeasyPrint: < 68.0; before 68.0
- ansible-automation-platform-tech-preview/automation-dashboard-rhel9: no versions given
- weasyprint (PyPI): before 68.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- redhat-SADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-983w-rhvv-gwmv> (exploit, third-party-advisory, web)
- <https://github.com/Kozea/WeasyPrint/commit/b6a14f0f3f4ce9c0c75c1a2d73cb1c5d43f0e565> (patch, web)
- <https://access.redhat.com/security/cve/CVE-2025-68616> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2430858> (issue-tracking, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-68616.json> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-68616> (advisory)
- <https://github.com/Kozea/WeasyPrint> (package)
- <https://pypi.org/project/weasyprint> (package)
- <https://github.com/advisories/GHSA-983w-rhvv-gwmv> (advisory)

## Sources

- CVE List: [CVE-2025-68616](https://www.cve.org/CVERecord?id=CVE-2025-68616), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-983w-rhvv-gwmv](https://github.com/advisories/GHSA-983w-rhvv-gwmv), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-68616](https://nvd.nist.gov/vuln/detail/CVE-2025-68616), Public domain, modified 2026-07-15
- PyPA Advisory Database: [PYSEC-2026-2034](https://osv.dev/vulnerability/PYSEC-2026-2034), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-68616 · Whole record: https://cve.day/CVE-2025-68616.json · Rebuilt by cve.day 2026-11-25T22:59:10.694Z
