Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

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

39
This month
CRITICAL 9.6UPGRADE

CVE-2026-31938 is a critical-severity flaw (CVSS 9.6) 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 the `options` argument of the `output` function allows attackers to inject arbitrary HTML (such as scripts) into the browser context the created PDF is opened in. The vulnerability can be exploited in the following scenario: the attacker provides values for the output options, for example via a web interface. These values are then passed unsanitized (automa

Why this priority

  • Critical severity

A fixed release or distro patch exists.

Risk facts

CVSS score9.6 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionRequired
EPSS exploit chance0.3% (top 80%)
CISA exploited listNo
WeaknessCWE-79
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-31938?

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

Is CVE-2026-31938 being exploited?

CVE-2026-31938 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-31938 affect?

CVE-2026-31938 affects jspdf. Severity is critical (CVSS 9.6). jsPDF is a library to generate PDFs in JavaScript. Prior to version 4.2.1, user control of the `options` argument of the `output` function allows attackers to inject arbitrary HTML (such as scripts) into the browser context the created PDF

How urgent is CVE-2026-31938?

Priority 39/100. Critical 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.