Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-24040

CVE-2026-24040: jsPDF Information Disclosure Vulnerability

CVE-2026-24040 is an information disclosure flaw in jsPDF that causes cross-user data leakage in concurrent environments. This article covers the technical details, affected versions, impact, and mitigation strategies.

Published: February 6, 2026

CVE-2026-24040 Overview

CVE-2026-24040 is a Race Condition vulnerability in jsPDF, a popular JavaScript library used to generate PDF documents. Prior to version 4.1.0, the addJS method in the jsPDF Node.js build utilizes a shared module-scoped variable (text) to store JavaScript content. When deployed in concurrent environments such as Node.js web servers, this shared variable creates a race condition where multiple simultaneous requests can overwrite each other's data, resulting in cross-user data leakage.

Critical Impact

PDFs generated for one user may contain JavaScript payloads and sensitive data intended for another user, creating serious privacy and security implications in multi-tenant server environments.

Affected Products

  • jsPDF versions prior to 4.1.0
  • Node.js server-side deployments using jsPDF
  • Client-side implementations with concurrent PDF generation

Discovery Timeline

  • 2026-02-02 - CVE CVE-2026-24040 published to NVD
  • 2026-02-03 - Last updated in NVD database

Technical Details for CVE-2026-24040

Vulnerability Analysis

This vulnerability stems from improper handling of shared state in a concurrent execution environment. The addJS method in jsPDF's Node.js build stores JavaScript content in a module-level variable that persists across all requests processed by the application. In server-side deployments where multiple users may request PDF generation simultaneously, this architectural flaw creates a Time-of-Check Time-of-Use (TOCTOU) race condition.

When User A initiates PDF generation with specific JavaScript content, that content is stored in the shared variable. If User B initiates their own PDF generation before User A's document is fully created, User B's JavaScript payload overwrites User A's content. The resulting PDF for User A then contains User B's data, effectively leaking potentially sensitive information across user boundaries.

Root Cause

The root cause is the use of a module-scoped variable to store request-specific data in a stateless, concurrent environment. This design pattern violates the principle of request isolation, where each request should maintain its own independent state. The shared text variable acts as a global singleton, creating an inherent race condition when concurrent requests access and modify it.

Attack Vector

The vulnerability is exploitable via network access in server-side deployments. An attacker does not need authentication or special privileges to trigger the race condition. The attack requires precise timing—the attacker must submit a PDF generation request that overlaps with another user's request window. While this requires some coordination, high-traffic servers naturally create conditions where race conditions are more likely to occur.

In a practical attack scenario, a malicious actor could repeatedly submit PDF generation requests to a vulnerable server, attempting to intercept sensitive JavaScript payloads from other users' documents. This is particularly concerning for applications that embed user-specific data, authentication tokens, or tracking scripts in generated PDFs.

Detection Methods for CVE-2026-24040

Indicators of Compromise

  • Unexpected JavaScript content appearing in generated PDF documents
  • User reports of receiving PDF files containing data or scripts intended for other users
  • Audit logs showing PDF generation requests with mismatched user identifiers and content
  • Anomalous patterns in PDF generation timing indicating potential exploitation attempts

Detection Strategies

  • Implement content validation checks on generated PDFs before delivery to verify JavaScript payload integrity
  • Add request correlation logging that tags JavaScript content with unique request identifiers throughout the generation lifecycle
  • Monitor for unusual spikes in concurrent PDF generation requests that could indicate exploitation attempts
  • Deploy application performance monitoring to detect race condition symptoms such as unexpected variable state changes

Monitoring Recommendations

  • Enable verbose logging for the addJS method invocations with request context correlation
  • Implement real-time alerting for PDF content validation failures
  • Monitor server concurrency metrics and correlate with PDF generation anomalies
  • Conduct periodic security audits of generated PDFs in staging environments to detect data leakage

How to Mitigate CVE-2026-24040

Immediate Actions Required

  • Upgrade jsPDF to version 4.1.0 or later immediately
  • Audit any server-side PDF generation code that uses the addJS method for potential exposure
  • Review logs for any indication that data leakage may have already occurred
  • Implement temporary rate limiting on PDF generation endpoints if immediate upgrade is not possible

Patch Information

The vulnerability has been fixed in jsPDF version 4.1.0. The fix addresses the shared state issue by ensuring JavaScript content is scoped to individual document instances rather than stored in a module-level variable. Users should upgrade to the patched version as the primary remediation.

For reference, the fix details are available in the GitHub Commit and the jsPDF v4.1.0 Release. Additional vulnerability details can be found in the GitHub Security Advisory GHSA-cjw8-79x6-5cj4.

Workarounds

  • Serialize PDF generation requests using a queue system to prevent concurrent execution of the addJS method
  • Implement request isolation by spawning separate worker processes for each PDF generation request
  • Avoid using the addJS method entirely until upgrade is complete, if JavaScript embedding is not critical
  • Deploy server-side request throttling to reduce the likelihood of race condition exploitation
bash
# Upgrade jsPDF to the patched version
npm update jspdf@4.1.0

# Verify the installed version
npm list jspdf

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechJspdf

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-362
  • Technical References
  • GitHub Commit Details

  • GitHub Release v4.1.0

  • GitHub Security Advisory GHSA-cjw8-79x6-5cj4
  • Related CVEs
  • CVE-2026-31938: Parall Jspdf XSS Vulnerability

  • CVE-2026-31898: jsPDF Library XSS Vulnerability

  • CVE-2026-25940: jsPDF Acroform XSS Vulnerability

  • CVE-2026-25535: jsPDF Library DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English