weasyprint@43rc2

The Awesome Document Factory

  • latest version

    70.0

  • latest non vulnerable version

  • first published

    14 years ago

  • latest version published

    25 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the weasyprint package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Server-side Request Forgery (SSRF)

    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.

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade weasyprint to version 70.0 or higher.

    [,70.0)
    • M
    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

    weasyprint is a The Awesome Document Factory

    Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') in the processing of presentational hints when unescaped attribute values are embedded into CSS. An attacker can inject arbitrary CSS declarations by supplying crafted attribute values, potentially causing server-side requests or altering the rendered output. This is only exploitable if presentational hints are enabled.

    How to fix Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')?

    Upgrade weasyprint to version 69.0 or higher.

    [,69.0)
    • M
    Server-side Request Forgery (SSRF)

    weasyprint is a The Awesome Document Factory

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the default_url_fetcher function. An attacker can access internal network resources by exploiting automatic HTTP redirects that are not re-validated against security policies.

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade weasyprint to version 68.0 or higher.

    [0.12,68.0)