CVE-2026-25940

HIGH

jspdf < 4.2.0 - Arbitrary PDF Object Injection via Acroform Module

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2026-25940. PoCs published by dajneem23.

AI-analyzed exploit summary This repository contains a functional PoC for CVE-2026-25940, exploiting a vulnerability in PDF viewers (e.g., Foxit) via crafted AcroForm radio button appearances that trigger embedded JavaScript execution. The PoC includes both a Node.js generator and a browser-based viewer harness to demonstrate the exploit.

Description

jsPDF is a library to generate PDFs in JavaScript. Prior to 4.2.0, user control of properties and methods of the Acroform module allows users to inject arbitrary PDF objects, such as JavaScript actions. If given the possibility to pass unsanitized input to one of the following property, a user can inject arbitrary PDF objects, such as JavaScript actions, which are executed when the victim hovers over the radio option. The vulnerability has been fixed in [email protected]. As a workaround, sanitize user input before passing it to the vulnerable API members.

Exploits (1)

nomisec WORKING POC
by dajneem23 · poc
https://github.com/dajneem23/CVE-2026-25940

This repository contains a functional PoC for CVE-2026-25940, exploiting a vulnerability in PDF viewers (e.g., Foxit) via crafted AcroForm radio button appearances that trigger embedded JavaScript execution. The PoC includes both a Node.js generator and a browser-based viewer harness to demonstrate the exploit.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Complex
Reliability
Reliable
Target: Foxit PDF Reader (and potentially other PDF viewers)
No auth needed
Prerequisites: Node.js 18+ · npm · jsPDF dependency
devstral-2 · analyzed Mar 02, 2026 Full analysis →

Scores

CVSS v3 8.1
EPSS 0.0004
EPSS Percentile 13.2%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

CWE
CWE-116
Status published
Products (2)
npm/jspdf 0 - 4.2.0npm
parall/jspdf < 4.2.0
Published Feb 19, 2026
Tracked Since Feb 19, 2026