Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-31898: jsPDF is a library to generate PDFs in JavaScript

36
Routine
HIGH 8.1UPGRADE

CVE-2026-31898 is a high-severity flaw (CVSS 8.1) affecting jspdf. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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` par

Why this priority

  • High severity

A fixed release or distro patch exists.

Risk facts

CVSS score8.1 (High)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionRequired
EPSS exploit chance0.4% (top 69%)
CISA exploited listNo
WeaknessCWE-116, CWE-94
Published2026-03-18
Last modified2026-08-18
Publisher (CNA): GitHub, Inc. · Vendor: parall

Share: LinkedIn · X · Reddit

Last updated 2026-08-18 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

parall jspdf UPGRADE
Affected: < 4.2.1
Fixed in: 4.2.1
Safe to downgrade to: no unaffected older release
1. Check installed version
npm ls jspdf
2. UPGRADE to 4.2.1
npm install jspdf@">=4.2.1"
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-31898?

jspdf: upgrade to 4.2.1. Exact commands for each OS are on this page.

Is CVE-2026-31898 being exploited?

CVE-2026-31898 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-31898 affect?

CVE-2026-31898 affects jspdf. Severity is high (CVSS 8.1). 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

How urgent is CVE-2026-31898?

Priority 36/100. High severity

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.