Vulnerabilities

1 via 1 paths

Dependencies

17

Source

GitHub

Commit

9dd13495

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
Status
  • 1
  • 0
  • 0

critical severity
new

External Control of File Name or Path

  • Vulnerable module: jspdf
  • Introduced through: jspdf@3.0.4

Detailed paths

  • Introduced through: svgedit@SVG-Edit/svgedit#9dd1349599b397cb0b2d3f2d8b5a02c036ccda0c jspdf@3.0.4
    Remediation: Upgrade to jspdf@4.0.0.

Overview

jspdf is a PDF Document creation from JavaScript

Affected versions of this package are vulnerable to External Control of File Name or Path via the loadFile, addImage, html and addFont functions. An attacker can access and include arbitrary files from the local file system into generated PDFs.

Workaround

This vulnerability can be mitigated by using the Node.js --permission flag in production environments (available in Node.js v20.0.0 and stable since v22.13.0/v23.5.0/v24.0.0).

Remediation

Upgrade jspdf to version 4.0.0 or higher.

References