Vulnerability library
Security checkJanuary 16, 2026

jsPDF has Local File Inclusion/Path Traversal vulnerability

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmjspdf

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

User control of the first argument of the loadFile method in the node.js build allows local file inclusion/path traversal.

If given the possibility to pass unsanitized paths to the loadFile method, a user can retrieve file contents of arbitrary files in the local file system the node process is running in.

Recommendation

Update the jspdf package to the latest compatible version. Followings are version details:

  • Affected version(s): <= 3.0.4
  • Patched version(s): 4.0.0

References

Could your website be exposed too?

SmartScanner can check your website for jsPDF has Local File Inclusion/Path Traversal vulnerability and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 16, 2026