Vulnerabilities/

jsPDF Vulnerable to Stored XMP Metadata Injection (Spoofing & Integrity Violation)

Severity:
Medium

Description

User control of the first argument of the addMetadata function allows users to inject arbitrary XML.

If given the possibility to pass unsanitized input to the addMetadata method, a user can inject arbitrary XMP metadata into the generated PDF.

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 February 03, 2026