Vulnary
← back to the feed
Critical· 9.6official fix available

CVE-2026-31938

A flaw in the jsPDF library lets attackers inject malicious scripts into PDFs that run in the victim’s browser when the PDF is opened. The issue exists in versions before 4.2.1 and can be fixed by updating the library. The vulnerability is not yet publicly exploited.

publishedMar 18, 2026
last modifiedJul 20, 2026
sourcesNVD
severity · cvss
9.6
critical · how bad it is
exploitation · epss
<1%
18th percentile · chance of exploitation in 30 days
(ai-assisted) A model wrote this summary from the official data, so double-check it against the source before you act on it. Read the official advisory →
auto-deletes from the system
counting…on Aug 19, 2026

An official fix is available, so this entry is kept for 30 days and then removed automatically.

01

Who is affected

Web developers using jsPDF to generate PDFs in browsers, specifically any version earlier than 4.2.1.

02

Real-world impact

An attacker can run arbitrary code in the victim’s browser, potentially stealing or altering sensitive information such as cookies, session tokens, or other secrets.

03

Why this severity

The CVSS score of 9.6 reflects that the flaw can be triggered over the network with low effort, requires no special privileges, and changes the security scope. It grants attackers high confidentiality and integrity impact while only slightly affecting availability.

04

What to do about it

official fix available
recommended steps
  1. 01Upgrade jsPDF to version 4.2.1 or later.

NVD-referenced vendor advisory

05

Timeline

  1. Mar 18, 2026 · Mar 18, 2026
    Published
    Disclosed and added to the National Vulnerability Database.
  2. Jul 20, 2026 · 16d ago
    Advisory updated
    The NVD record was last revised.
  3. Jul 20, 2026 · 16d ago
    Official fix available
    A vendor patch or mitigation now exists — see the remediation steps above.
06

How it’s attacked

Attack vectorNetwork (remote)
Attack complexityLow
Privileges requiredNone
User interactionRequired
ScopeChanged
Confidentiality impactHigh
Integrity impactHigh
Availability impactLow
07

References & advisories

(ai-assisted) A model wrote this summary from the official data, so double-check it against the source before you act on it. Read the official advisory →