Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2026-31938

28
FAUCET Score

CVE-2026-31938 is a Cross-Site Scripting (XSS) vulnerability affecting the jsPDF library prior to version 4.2.1. It allows attackers to inject arbitrary HTML and scripts into a victim's browser context by manipulating the `output` function's options when a crafted PDF is opened. This medium-severity vulnerability (CVSS 6.1) requires user interaction, enabling script execution to potentially extract or modify sensitive data. While there is no evidence of active exploitation or public exploit code, the vulnerability has garnered some community discussion. The issue is resolved in jsPDF version 4.2.1, and a workaround involves sanitizing user input.

Impacted Technologies

VendorProductVersion(s)CPE
< 4.2.1CPE matchmatch criteria
cpe:2.3:a:parall:jspdf:*:*:*:*:*:node.js:*:*

CVSS Data

CVSS version used by this source: 3.1

9.6CRITICAL

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

Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
LOW
Exploitability Score
2.8
Impact Score
6.0
CvssVersion
3.1

Exploit Intelligence

EPSS Score
0.26%
Probability of exploitation in next 30 days
EPSS Percentile
18.1%
Percentile rank of EPSS score among Peer Group
As of 2026-07-27
Model: v2026.06.15
This CVE's current EPSS score of 0.0026 is in the 19th percentile among its peer group of 26,221 CVEs.

Social Chatter

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.

Media 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.

Remediation

Patch Available

Vendor Patches (1)

npmpatch availablevia ghsa
Product: jspdfFixed in: 4.2.1

Vendor Advisories (1)

npmGHSA-wfv2-pwc8-crg5critical

jsPDF has HTML Injection in New Window paths

Mar 17, 2026

References

access.redhat.com / errata/RHSA-2026:7110
access.redhat.com / errata/RHSA-2026:7128
access.redhat.com / security/cve/CVE-2026-31938
bugzilla.redhat.com / show_bug.cgi
security.access.redhat.com / data/csaf/v2/vex/2026/cve-2026-31938.json
github.com / parallax/jsPDF/commit/87a40bbd07e6b30575196370670b41f264aa78d7
Patch
github.com / parallax/jsPDF/releases/tag/v4.2.1
ProductRelease Notes
github.com / parallax/jsPDF/security/advisories/GHSA-wfv2-pwc8-crg5
MitigationVendor Advisory