Server-side Request Forgery (SSRF) Affecting weasyprint package, versions [,70.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-WEASYPRINT-19659995
  • published10 Sept 2026
  • disclosed9 Sept 2026
  • creditko41a

Introduced: 9 Sep 2026

NewCVE-2026-55073  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade weasyprint to version 70.0 or higher.

Overview

weasyprint is a The Awesome Document Factory

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the write_pdf() stylesheet and XMP metadata loading paths in weasyprint/document.py and weasyprint/pdf/__init__.py. An attacker can make the rendering process fetch local or internal resources by supplying attacker-controlled URLs or paths through stylesheets= or xmp_metadata=. This bypasses the document’s configured url_fetcher, so server-side PDF generation can read local files or reach internal endpoints, leading to data exposure and unintended resource access in applications that render untrusted input.

CVSS Base Scores

version 4.0
version 3.1