Skip to main content
VulnerabilityPublished Updated

CVE-2026-31898: parallax jsPDF · Improper Encoding or Escaping of Output

Affects parallax jsPDFSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.1 High : upgrade to 4.2.1 soon.

Data as of 30 Oct 2026, 11:34 UTC

CVSS 3.1 base score
8.1High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 30% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 4.2.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 18 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Oct 2026.

What to do

Upgrade jsPDF and jspdf to 4.2.1.

Affected software

ProductAffectedFixed in
parallaxjsPDFAffected
  • <4.2.1
Fixed in
  • 4.2.1
npmjspdfpkg:npm/jspdfOther threatsAffected
  • <4.2.1
Fixed in
  • 4.2.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade to jsPDF version 4.2.1 or later, which contains the official fix for this vulnerability. As a workaround, sanitize all user input before passing it to the createAnnotation method, especially the color parameter. Vendor advisories indicate that other mitigations do not meet criteria for broad applicability or stability, so upgrading is strongly recommended.

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.

References

Community reviews

Loading reviews…