jspdf@2.4.0 vulnerabilities

PDF Document creation from JavaScript

  • latest version

    3.0.1

  • latest non vulnerable version

  • first published

    10 years ago

  • latest version published

    2 months ago

  • licenses detected

  • Direct Vulnerabilities

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

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Regular Expression Denial of Service (ReDoS)

    jspdf is a PDF Document creation from JavaScript

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in the addImage(), html(), and addSvgAsImage() methods. An attacker can occupy excessive CPU by supplying a malicious data-url.

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

    Upgrade jspdf to version 3.0.1 or higher.

    <3.0.1