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 applicationsLearn about Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.
Start learningUpgrade weasyprint to version 70.0 or higher.
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.