CVE-20XX-?
agent?

CVE-2026-31938

9.6 CRITICAL 0.3% exploit odds Fix listed XSS Browser & mail

What it is

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 (automatically or semi-automatically) to the attack victim. The victim creates and opens a PDF with the attack vector using one of the vulnerable method overloads inside their browser. The attacker can thus inject scripts that run in the victims browser context and can extract or modify secrets from this context. The vulnerability has been fixed in [email protected]. As a workaround, sanitize user input before passing it to the output method.

At a glance

Exploitability
Can be exploited over the network without logging in, but needs a user to act. High risk of data exposure, data tampering.
Exploit odds
0.3% chance of exploitation in the next 30 days (EPSS).
Fix
A patch, advisory or fixed version is referenced. Upgrade or apply it.

Timeline

  1. PublishedDisclosed publicly on CVE.org and NVD
  2. Last updatedMost recent change to the record

Why it ranks here

Details

Published
Last modified
Exploit probability
0.3% · EPSS, next 30 days
Weakness
CWE-79 · Cross-site scripting
Record status
Modified

Affected

Attack profile CVSS 3.1 · 9.6

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
Low
Raw vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:L

Is it in your code?

Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.

Read https://cve-list.com/agent/cve/CVE-2026-31938.md and follow it. Check whether this project is affected by CVE-2026-31938. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.

· More options · Status badge

Meme: I wake up, CVE-2026-31938
Download Square Reddit

Fix and advisories

References

NVD record · CVE.org record