CVE-2026-31898

CVE-2026-31898 is a high-severity vulnerability in Parall Jspdf with a CVSS 3.x base score of 8.1. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-116.

Key facts

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 [email protected]. As a workaround, sanitize user input before passing it to the vulnerable API members.

Frequently asked questions

What is CVE-2026-31898?
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 [email protected]. As a workaround, sanitize user input before passing it to the vulnerable API members.
How severe is CVE-2026-31898?
CVE-2026-31898 has a CVSS 3.x base score of 8.1, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity high, and availability none.
Is CVE-2026-31898 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (28th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2026-31898?
CVE-2026-31898 affects Parall Jspdf. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2026-31898?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
Does CVE-2026-31898 have an EU (EUVD) identifier?
Yes. CVE-2026-31898 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-12753.
When was CVE-2026-31898 published?
CVE-2026-31898 was published on 2026-03-18 and last updated on 2026-06-30.

References

Affected products (1)

More vulnerabilities in Parall Jspdf

All CVEs affecting Parall Jspdf →

Other CWE-116 vulnerabilities

Browse all CWE-116 vulnerabilities →