Vulnerabilities/

jsPDF has Local File Inclusion/Path Traversal vulnerability

Severity:
High

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:

References

Related Issues

Tags:
npm
jspdf
Anything's wrong? Let us know Last updated on January 16, 2026