---
id: CVE-2025-68616
title: WeasyPrint helps web developers to create PDF documents
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 ne…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-601
  - CWE-918
  - CWE-918
  - CWE-918
vendor: kozea
product: weasyprint
affected:
  - weasyprint < 68.0
patched:
  - weasyprint 68.0
published: '2026-01-19'
updated: '2026-06-30'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-68616'
references:
  - url: >-
      https://github.com/Kozea/WeasyPrint/commit/b6a14f0f3f4ce9c0c75c1a2d73cb1c5d43f0e565
    label: security-advisories@github.com
  - url: >-
      https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-983w-rhvv-gwmv
    label: security-advisories@github.com
  - url: 'https://access.redhat.com/security/cve/CVE-2025-68616'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2430858'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: >-
      https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-983w-rhvv-gwmv
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-68616.json
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
tags:
  - nvd
  - exploit-available
epss: 0.00712
epssPercentile: 0.51759
ingestedAt: '2026-06-30T13:26:50.505Z'
exploits:
  github: 1
  githubRepos:
    - >-
      https://github.com/rauljvc8/CVE-2025-68616-Detecting-and-Patching-an-SSRF-in-WeasyPrint-with-Wazuh
  checkedAt: '2026-09-21T15:27:46.624Z'
exploitAvailable: true
---

## Overview

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.

## Affected

- `weasyprint < 68.0`

## Remediation

Upgrade past the affected range:

- `weasyprint 68.0`
