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-2024-21534

CVE-2024-21534: jsonpath-plus RCE Vulnerability

CVE-2024-21534 is a remote code execution flaw in jsonpath-plus caused by improper input sanitization. Attackers can execute arbitrary code by exploiting unsafe vm usage. This article covers technical details, all affected versions, impact assessment, and mitigation strategies.

Published: January 28, 2026

CVE-2024-21534 Overview

CVE-2024-21534 is a critical Remote Code Execution (RCE) vulnerability affecting all versions of the jsonpath-plus npm package. The vulnerability exists due to improper input sanitization, allowing attackers to execute arbitrary code on systems running Node.js applications that utilize this popular JSON path evaluation library. The flaw stems from the unsafe default usage of the vm module in Node.js, which can be exploited to escape the sandbox and execute malicious code on the host system.

Multiple fix attempts were made in versions 10.0.0 through 10.1.0, but researchers discovered that the vulnerability could still be exploited using alternative payloads, making this a persistent security concern for applications depending on jsonpath-plus.

Critical Impact

This vulnerability enables unauthenticated remote attackers to achieve full system compromise through arbitrary code execution on any Node.js application using jsonpath-plus for JSON path evaluation.

Affected Products

  • jsonpath-plus (all versions)
  • Applications and services utilizing jsonpath-plus for JSON path queries
  • WebJars npm packages including org.webjars.npm:jsonpath-plus

Discovery Timeline

  • 2024-10-11 - CVE-2024-21534 published to NVD
  • 2024-11-18 - Last updated in NVD database

Technical Details for CVE-2024-21534

Vulnerability Analysis

This Remote Code Execution vulnerability exists within the jsonpath-plus library's core evaluation mechanism. The package uses Node.js's vm module to evaluate JSONPath expressions, but fails to properly sanitize user-controlled input before evaluation. This creates a critical code injection vector where malicious JSONPath expressions can break out of the vm sandbox and execute arbitrary JavaScript code on the underlying system.

The vulnerability is classified under CWE-94 (Improper Control of Generation of Code - Code Injection), which describes flaws where software constructs code segments using externally-influenced input without proper neutralization of special elements. In this case, attackers can craft specially-formed JSONPath queries that escape the vm context and gain access to Node.js runtime primitives.

Root Cause

The root cause of CVE-2024-21534 lies in the insecure implementation of the JavaScript vm module for expression evaluation. The vm module in Node.js is not designed to be a security boundary and is explicitly documented as not providing a secure sandbox. When jsonpath-plus uses this module to evaluate user-provided JSONPath expressions without rigorous input sanitization, attackers can leverage well-known vm escape techniques to access the process object and execute arbitrary system commands.

Despite remediation attempts in versions 10.0.0 through 10.1.0, the fix implementations were incomplete, allowing researchers to discover alternative payload structures that bypassed the security controls.

Attack Vector

The attack vector for this vulnerability is network-based, requiring no authentication or user interaction. An attacker can exploit this vulnerability by supplying a maliciously crafted JSONPath expression to any application endpoint that processes user-provided JSONPath queries using the jsonpath-plus library.

The exploitation process involves:

  1. Identifying an application that accepts user-controlled JSONPath expressions
  2. Crafting a payload that escapes the vm sandbox context
  3. Accessing Node.js constructor chains to reach the process object
  4. Executing arbitrary system commands through child_process or similar modules

The vulnerability can be triggered by sending a specially crafted JSONPath expression to any application that passes untrusted input to the jsonpath-plus evaluation function. As documented in the GitHub Issue Discussion, multiple bypass techniques exist that circumvent initial fix attempts, making it essential to evaluate whether jsonpath-plus should be used with any untrusted input.

Detection Methods for CVE-2024-21534

Indicators of Compromise

  • Unusual JSONPath query patterns containing JavaScript constructor chains or prototype references
  • Application logs showing errors related to vm context escapes or sandbox violations
  • Unexpected child process spawning from Node.js applications using jsonpath-plus
  • Network traffic containing encoded or obfuscated JSONPath expressions with suspicious payloads

Detection Strategies

  • Monitor application logs for JSONPath expressions containing suspicious patterns like constructor, __proto__, or process
  • Implement Web Application Firewall (WAF) rules to detect and block common vm escape payload patterns
  • Deploy runtime application self-protection (RASP) to detect code injection attempts
  • Use static code analysis tools to identify jsonpath-plus usage with untrusted input

Monitoring Recommendations

  • Enable verbose logging for all jsonpath-plus function calls and their input parameters
  • Set up alerts for any process execution anomalies in Node.js application containers
  • Monitor npm audit reports for vulnerable jsonpath-plus versions in CI/CD pipelines
  • Implement dependency scanning to track all instances of jsonpath-plus across the organization

How to Mitigate CVE-2024-21534

Immediate Actions Required

  • Audit all applications for jsonpath-plus usage and identify instances processing untrusted input
  • Implement strict input validation and allowlisting for any JSONPath expressions accepted from users
  • Consider replacing jsonpath-plus with alternative JSONPath libraries that do not use vm-based evaluation
  • Deploy network-level controls to limit exposure of affected applications while remediation is in progress

Patch Information

As of the last update, the vulnerability persists across all versions of jsonpath-plus, including versions 10.0.0 through 10.1.0 which contained incomplete fixes. The GitHub Version Comparison shows the attempted remediation efforts, while the GitHub Issue Discussion documents the bypass techniques that render these fixes ineffective.

Organizations should monitor the jsonpath-plus repository for future security releases and consider the following resources for vulnerability details:

  • Snyk JavaScript Vulnerability
  • Snyk Vulnerability Report

Workarounds

  • Avoid passing user-controlled input directly to jsonpath-plus evaluation functions
  • Implement a strict allowlist of permitted JSONPath patterns and reject all expressions not matching the allowlist
  • Run Node.js applications using jsonpath-plus in isolated containers with minimal privileges
  • Use alternative JSONPath libraries such as jsonpath or json-query that do not rely on vm-based evaluation

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechJsonpath Plus

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability91.96%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • GitHub Version Comparison

  • GitHub Issue Discussion

  • Snyk Vulnerability Report

  • Snyk JavaScript Vulnerability
  • Related CVEs
  • CVE-2025-1302: jsonpath-plus RCE 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