cairosvg@1.0.18

A Simple SVG Converter based on Cairo

  • latest version

    2.9.0

  • latest non vulnerable version

  • first published

    14 years ago

  • latest version published

    1 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the cairosvg 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
    • H
    Allocation of Resources Without Limits or Throttling

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling through the use function in the SVG recursive processing workflow. An attacker can cause excessive CPU consumption by submitting a specially crafted SVG file with deeply nested <use> elements.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade CairoSVG to version 2.9.0 or higher.

    [,2.9.0)
    • H
    Server-side Request Forgery (SSRF)

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) when processing an SVG file that loads an external resource from a URL. Attackers can exploit this to access files on the server, or cause the service to hang waiting for a response to an invalid file request. This is exploitable whether or not the optional unsafe option is enabled.

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

    Upgrade CairoSVG to version 2.7.0 or higher.

    [,2.7.0)
    • M
    Regular Expression Denial of Service (ReDoS)

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS). When processing SVG files, the python package CairoSVG uses two regular expressions which are vulnerable to Regular Expression Denial of Service (REDoS). If an attacker provides a malicious SVG, it can make cairosvg get stuck processing the file for a very long time.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade CairoSVG to version 2.5.1 or higher.

    [,2.5.1)
    • H
    XML External Entity (XXE) Injection

    cairosvg is a Simple SVG Converter based on Cairo.

    Affected versions of this package are vulnerable to XML external entity (XXE) injection due to resolving XML entities from untrusted SVG files.

    [,1.0.21)