7.5 HIGH
- CVSS version: 3.1
- Attack vector (AV): NETWORK
- Attack complexity (AC): LOW
- Privileges required (PR): NONE
- User interaction (UI): NONE
- Scope (S): UNCHANGED
- Confidentiality impact (C): HIGH
- Integrity impact (I): NONE
- Availability impact (A): NONE
WeasyPrint Vulnerable to Server-Side Request Forgery (SSRF) Protection Bypass via HTTP Redirect
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.
References
-
https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-983w-rhvv-gwmv exploitx_refsource_CONFIRM
Affected products
- ==< 68.0
Matching in nixpkgs
pkgs.python312Packages.weasyprint
Converts web documents to PDF
pkgs.python313Packages.weasyprint
Converts web documents to PDF
pkgs.python312Packages.django-weasyprint
Django class-based view generating PDF resposes using WeasyPrint
Package maintainers
-
@hoh Hugo Herter <git@hugoherter.com>
-
@DutchGerman Stefan Visser <stefan.visser@apm-ecampus.de>