Vulnerabilities/

jsPDF has a PDF Object Injection via FreeText color

Severity:
High

Description

User control of arguments of the createAnnotation method allows users to inject arbitrary PDF objects, such as JavaScript actions.

If given the possibility to pass unsanitized input to the following method, a user can inject arbitrary PDF objects, such as JavaScript actions, which might trigger when the PDF is opened or interacted with..

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 March 19, 2026