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
    • 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-24043

CVE-2026-24043: jsPDF Library XXE Vulnerability

CVE-2026-24043 is an XXE vulnerability in jsPDF library that allows attackers to inject arbitrary XML metadata into generated PDFs. This post covers the technical details, affected versions, and mitigation strategies.

Published: February 6, 2026

CVE-2026-24043 Overview

CVE-2026-24043 is an XML injection vulnerability in jsPDF, a popular JavaScript library used to generate PDF documents. Prior to version 4.1.0, the addMetadata function fails to properly sanitize user-controlled input in its first argument, enabling attackers to inject arbitrary XML content into generated PDFs.

This vulnerability allows malicious users who can supply unsanitized input to the addMetadata method to inject arbitrary XMP (Extensible Metadata Platform) metadata into PDF documents. The integrity of any PDF generated through a vulnerable application can no longer be guaranteed, particularly impacting signed documents and PDFs that undergo downstream processing or storage.

Critical Impact

Attackers can inject arbitrary XMP metadata into generated PDFs, potentially compromising document integrity, invalidating digital signatures, and enabling document manipulation attacks.

Affected Products

  • jsPDF versions prior to 4.1.0

Discovery Timeline

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

Technical Details for CVE-2026-24043

Vulnerability Analysis

This vulnerability is classified under CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component), commonly known as Injection. The root issue lies in the addMetadata function's failure to sanitize or validate the content passed as its first argument before embedding it into the PDF's XMP metadata stream.

XMP metadata in PDFs follows an XML-based structure. When user-controlled data is directly inserted into this XML structure without proper encoding or validation, attackers can break out of the intended data context and inject their own XML elements. This can lead to modification of document properties, injection of malicious metadata, or corruption of the XMP structure entirely.

The vulnerability is accessible over the network in web applications that expose PDF generation functionality to users, requiring no authentication or user interaction to exploit. While the vulnerability does not directly lead to data confidentiality breaches, it enables integrity violations in both the vulnerable system and potentially in subsequent systems that process the manipulated PDFs.

Root Cause

The addMetadata function in jsPDF versions prior to 4.1.0 directly concatenates user-supplied input into the XMP metadata XML structure without performing input validation, escaping XML special characters, or implementing proper output encoding. This missing input sanitization allows XML injection attacks where special characters like <, >, ", and & can be used to manipulate the XML structure.

Attack Vector

The attack is network-based and can be executed against any web application that:

  1. Uses a vulnerable version of jsPDF (prior to 4.1.0)
  2. Allows users to supply input that is passed to the addMetadata function
  3. Does not implement application-level sanitization of this input

An attacker would craft a malicious input string containing XML markup designed to inject additional XMP metadata elements or modify existing ones. When the PDF is generated, this injected content becomes part of the document's metadata. If the PDF is subsequently digitally signed, the manipulated metadata could affect the document's integrity verification. Similarly, systems that rely on PDF metadata for indexing, archival, or processing may be deceived by the injected content.

The vulnerability requires no special privileges or user interaction, making it straightforward to exploit in susceptible applications.

Detection Methods for CVE-2026-24043

Indicators of Compromise

  • Unexpected or malformed XMP metadata structures within generated PDF documents
  • PDF metadata containing XML special characters or unexpected XML elements
  • Error logs indicating XML parsing failures when processing generated PDFs
  • Unusual metadata content in PDFs that doesn't match expected application output

Detection Strategies

  • Audit application code to identify all instances where user input flows to the addMetadata function
  • Implement input validation checks that detect XML special characters in metadata inputs
  • Use static application security testing (SAST) tools to identify injection vulnerabilities in JavaScript codebases
  • Monitor PDF generation endpoints for inputs containing XML markup patterns

Monitoring Recommendations

  • Log all inputs passed to PDF generation functions for forensic analysis
  • Implement alerting for PDF metadata validation failures in downstream processing systems
  • Monitor for unusual patterns in user-supplied metadata content
  • Review generated PDFs periodically for metadata integrity anomalies

How to Mitigate CVE-2026-24043

Immediate Actions Required

  • Upgrade jsPDF to version 4.1.0 or later immediately
  • Audit all application code paths that use the addMetadata function
  • Implement server-side input sanitization for any user-controlled data passed to PDF generation
  • Review any PDFs generated by vulnerable versions that may have been stored or distributed

Patch Information

The vulnerability has been fixed in jsPDF version 4.1.0. The fix implements proper input sanitization for the addMetadata function to prevent XML injection attacks. Organizations should upgrade to this version or later to remediate the vulnerability.

For detailed information about the security fix, refer to the GitHub Commit Details and the GitHub Release v4.1.0. Additional information is available in the GitHub Security Advisory GHSA-vm32-vv63-w422.

Workarounds

  • Implement strict input validation and XML entity encoding for all data passed to addMetadata before upgrading
  • Sanitize user input by escaping XML special characters (<, >, ", ', &) before passing to the function
  • Use an allowlist approach for metadata content, permitting only known-safe characters and patterns
  • Consider disabling custom metadata functionality temporarily if upgrade is not immediately possible
bash
# Example npm upgrade command
npm install jspdf@4.1.0
# Or using yarn
yarn upgrade jspdf@4.1.0

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

  • Vulnerability Details
  • TypeXXE

  • Vendor/TechJspdf

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/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-74
  • Technical References
  • GitHub Commit Details

  • GitHub Release v4.1.0

  • GitHub Security Advisory GHSA-vm32-vv63-w422
  • 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