Skip to content

WeasyPrint Vulnerable to Server-Side Request Forgery (SSRF) Protection Bypass via HTTP Redirect #481891

Closed

Description

@nixpkgs-security-tracker

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.

CVSS CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • 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
Affected packages

Additional comment

Upstream advisory: https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-983w-rhvv-gwmv
Upstream fix: https://github.com/Kozea/WeasyPrint/commit/b6a14f0f3f4ce9c0c75c1a2d73cb1c5d43f0e565

Activity

  1. added
    1.severity: security
    on Jan 20, 2026
  2. wolfgangwalther commented on Jan 20, 2026

    @wolfgangwalther
    Contributor

    cc @friedow you might wanna add yourself as package maintainer to weasyprint, too.

    Edit: Seems like you already are - and the security tracker pings the wrong maintainers here. Maybe it takes them from the stable branch...

  3. LeSuisse commented on Jan 26, 2026

    @LeSuisse
    Member

    25.11: #482601

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.severity: security

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions