Vulnerability

CVE-2026-31898

mediumCVSS 3.1 6.5Published 18 Mar 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

jsPDF is a library to generate PDFs in JavaScript. Prior to version 4.2.1, 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 the `createAnnotation`: `color` parameter. The vulnerability has been fixed in jsPDF@4.2.1. As a workaround, sanitize user input before passing it to the vulnerable API members.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Parall jspdf

Weakness type

References

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning