The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-25940

CVE-2026-25940: jsPDF Acroform XSS Vulnerability

CVE-2026-25940 is a cross-site scripting flaw in jsPDF's Acroform module that allows injection of malicious JavaScript actions. This article covers the technical details, affected versions, and mitigation steps.

Published: February 20, 2026

CVE-2026-25940 Overview

CVE-2026-25940 is a high-severity injection vulnerability affecting jsPDF, a popular JavaScript library used to generate PDF documents in web applications. Prior to version 4.2.0, the library's Acroform module fails to properly sanitize user-controlled input, allowing attackers to inject arbitrary PDF objects, including malicious JavaScript actions that execute when a victim interacts with certain PDF elements.

This vulnerability falls under CWE-116 (Improper Encoding or Escaping of Output), where the application fails to properly neutralize special elements before passing them to downstream components.

Critical Impact

Attackers can inject arbitrary JavaScript actions into generated PDFs that execute when victims hover over form elements such as radio options, potentially leading to credential theft, data exfiltration, or further exploitation.

Affected Products

  • jsPDF versions prior to 4.2.0
  • Applications using jsPDF Acroform module with unsanitized user input
  • Web applications generating PDFs with user-controlled form fields

Discovery Timeline

  • 2026-02-19 - CVE CVE-2026-25940 published to NVD
  • 2026-02-19 - Last updated in NVD database

Technical Details for CVE-2026-25940

Vulnerability Analysis

The vulnerability exists in jsPDF's Acroform module, which is responsible for generating interactive PDF form elements. The module accepts user-controlled properties and methods that are directly incorporated into the PDF document structure without proper sanitization or encoding.

When an attacker can control input passed to vulnerable Acroform API members, they can craft malicious input that escapes the intended context and injects arbitrary PDF objects. This includes the ability to inject JavaScript actions that are associated with form elements. The injected JavaScript executes within the PDF viewer's JavaScript engine when the victim interacts with the malicious form elements, such as hovering over a radio button option.

The attack requires user interaction (hovering over the compromised form element), but once triggered, the malicious JavaScript has access to the PDF viewer's JavaScript API, which can vary in capability depending on the viewer application used.

Root Cause

The root cause is improper encoding or escaping of output (CWE-116) within the Acroform module. The vulnerable code paths accept user-controlled properties and incorporate them directly into PDF object definitions without neutralizing special characters or validating that the input conforms to expected formats. This allows attackers to break out of the intended data context and inject additional PDF objects or actions.

Attack Vector

The attack vector is network-based, requiring an attacker to supply malicious input to an application that uses jsPDF with the Acroform module. The attack scenario involves:

  1. An attacker identifies a web application that generates PDFs using jsPDF and accepts user input for form fields
  2. The attacker crafts malicious input containing PDF object injection payloads targeting Acroform properties
  3. The application generates a PDF with the injected malicious JavaScript action
  4. When a victim opens the PDF and hovers over the affected form element (such as a radio option), the injected JavaScript executes

The vulnerability requires no authentication to exploit but does require user interaction to trigger the malicious payload. Successful exploitation can result in high impacts to confidentiality and integrity, as the attacker-controlled JavaScript can access data within the PDF and potentially interact with the PDF viewer's environment.

For detailed technical information about the vulnerability mechanism and specific affected API members, refer to the GitHub Security Advisory GHSA-p5xg-68wr-hm3m.

Detection Methods for CVE-2026-25940

Indicators of Compromise

  • PDF documents containing unexpected JavaScript actions associated with form elements
  • Suspicious user input patterns containing PDF object syntax characters in form-related API calls
  • Anomalous PDF structure with injected objects in Acroform sections
  • User reports of unexpected behavior when interacting with PDF form elements

Detection Strategies

  • Implement input validation logging to identify injection attempts targeting jsPDF Acroform properties
  • Scan generated PDF files for unauthorized JavaScript actions or unexpected object injections
  • Monitor application logs for unusual characters or escape sequences in form field inputs
  • Deploy static analysis tools to identify code paths passing unsanitized input to vulnerable jsPDF APIs

Monitoring Recommendations

  • Audit all code paths where user input flows into jsPDF Acroform module methods
  • Review generated PDFs periodically for unexpected embedded JavaScript
  • Implement Content Security Policy headers for applications serving generated PDFs
  • Monitor for security advisories related to jsPDF and dependent libraries

How to Mitigate CVE-2026-25940

Immediate Actions Required

  • Upgrade jsPDF to version 4.2.0 or later immediately
  • Audit all application code for usage of jsPDF Acroform module with user-controlled input
  • Implement input sanitization as a defense-in-depth measure for all user input passed to PDF generation functions
  • Review previously generated PDFs for potential compromise if user input was accepted

Patch Information

The vulnerability has been fixed in jsPDF version 4.2.0. The patch addresses the improper output encoding issue in the Acroform module, preventing injection of arbitrary PDF objects through user-controlled properties.

Patch details are available in the GitHub Commit Update. The fixed version can be obtained from the GitHub Release v4.2.0.

Workarounds

  • Sanitize all user input before passing it to vulnerable Acroform API members
  • Strip or encode special PDF object characters from user-controlled strings
  • Implement an allowlist approach for acceptable characters in form field properties
  • Consider disabling Acroform functionality if interactive forms are not required
bash
# Example: Update jsPDF using npm
npm update jspdf@4.2.0

# Verify 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
  • TypeXSS

  • Vendor/TechJspdf

  • SeverityHIGH

  • CVSS Score8.1

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-116
  • Technical References
  • GitHub Commit Update

  • GitHub Release v4.2.0

  • GitHub Security Advisory GHSA-p5xg-68wr-hm3m
  • Related CVEs
  • CVE-2026-31938: Parall Jspdf XSS Vulnerability

  • CVE-2026-31898: jsPDF Library XSS Vulnerability

  • CVE-2026-24737: jsPDF Library 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