CVE-2026-31898 is a medium-severity vulnerability (CVSS 6.5) affecting the jsPDF library prior to version 4.2.1. It allows remote attackers to inject arbitrary PDF objects, such as JavaScript actions, via unsanitized input to the `createAnnotation` method's `color` parameter. This could lead to malicious code execution when a user opens or interacts with the crafted PDF. The attack requires user interaction but has low complexity. There is currently no evidence of active exploitation, public exploit code, or significant community discussion regarding this vulnerability.
| Vendor | Product | Version(s) | CPE |
|---|---|---|---|
< 4.2.1CPE matchmatch criteria | cpe:2.3:a:parall:jspdf:*:*:*:*:*:node.js:*:* |
CVSS version used by this source: 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.1 Bluesky, 0.0 Mastodon, and 0.1 GitHub mentions.
No media coverage found for this CVE.
The average CVE in this peer group has 0.1 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.