A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-40453

CVE-2024-40453: Squirrelly Code Injection Vulnerability

CVE-2024-40453 is a code injection flaw in Squirrelly v9.0.0 affecting the options.varName component that enables unauthorized code execution. This article covers technical details, affected versions, and mitigation.

Updated: May 15, 2026

CVE-2024-40453 Overview

CVE-2024-40453 is a code injection vulnerability in Squirrelly, a JavaScript template engine for Node.js. The flaw affects squirrelly version 9.0.0 and was fixed in version 9.0.1. Attackers can exploit the options.varName component to inject and execute arbitrary code. The vulnerability falls under [CWE-94] (Improper Control of Generation of Code) and is network-exploitable without authentication or user interaction. Applications that pass attacker-controlled input into Squirrelly's render options expose themselves to remote code execution on the host process.

Critical Impact

Unauthenticated attackers can achieve remote code execution on Node.js applications that pass user-controlled data into Squirrelly's options.varName parameter, leading to full compromise of confidentiality, integrity, and availability.

Affected Products

  • Squirrelly 9.0.0 (Node.js template engine)
  • Applications embedding squirrelly as a rendering dependency
  • Fixed in Squirrelly 9.0.1

Discovery Timeline

  • 2024-08-21 - CVE-2024-40453 published to NVD
  • 2024-08-23 - Last updated in NVD database

Technical Details for CVE-2024-40453

Vulnerability Analysis

Squirrelly compiles templates into JavaScript functions at runtime. The engine uses the options.varName setting to declare the identifier under which template data is exposed inside the generated function body. The version 9.0.0 release placed this value directly into the compiled function source without validating or sanitizing its contents. An attacker who controls options.varName can therefore inject arbitrary JavaScript that executes inside the Node.js process.

The vulnerability is reachable over the network whenever an application accepts external input and passes it into Squirrelly's render configuration. Successful exploitation grants the attacker code execution with the privileges of the host process, enabling data theft, lateral movement, or service disruption.

Root Cause

The root cause is improper control of code generation [CWE-94]. The template compiler concatenates the varName option into dynamically built function source, treating it as a trusted identifier rather than untrusted input. Because Node.js evaluates the compiled function with Function() constructor semantics, any JavaScript embedded in varName becomes executable code at template render time.

Attack Vector

The attack vector is network-based and requires no authentication. An attacker submits a crafted value for options.varName through any application endpoint that propagates user input to Squirrelly's configuration. When the template renders, the malicious payload executes in the server's JavaScript runtime. The published fix in pull request #262 addresses the injection by validating the option before insertion into compiled code.

A detailed walkthrough of the exploitation path is available in the Samuzora CVE-2024-40453 Analysis.

Detection Methods for CVE-2024-40453

Indicators of Compromise

  • Unexpected child processes spawned by Node.js workers that host Squirrelly-based applications.
  • Outbound network connections from web application processes to unfamiliar hosts following template rendering activity.
  • HTTP request payloads containing JavaScript syntax such as parentheses, semicolons, or process. references in fields that map to template configuration.

Detection Strategies

  • Inventory Node.js dependencies and flag any project pinned to squirrelly@9.0.0 using software composition analysis tooling.
  • Inspect application code paths that forward request data into Squirrelly's options object, especially varName.
  • Monitor runtime behavior for the Node.js process executing eval-like operations or invoking child_process APIs unexpectedly.

Monitoring Recommendations

  • Enable verbose logging on web tier endpoints that accept template parameters and retain payloads for forensic review.
  • Alert on anomalous process lineage where the Node.js runtime spawns shells, package managers, or network utilities.
  • Correlate dependency manifests against the GitHub Squirrelly Repository release notes to confirm patched versions are deployed.

How to Mitigate CVE-2024-40453

Immediate Actions Required

  • Upgrade Squirrelly to version 9.0.1 or later across all Node.js applications.
  • Audit application code to ensure user input is never assigned to options.varName or other Squirrelly configuration fields.
  • Rotate credentials and secrets accessible to any host that ran the vulnerable version while exposed to untrusted input.

Patch Information

The maintainers released the fix in GitHub Pull Request #262, included in Squirrelly 9.0.1. The patch validates the varName option to prevent arbitrary code from being concatenated into the compiled template function. Update package manifests and lockfiles, then rebuild and redeploy affected services.

Workarounds

  • Hardcode options.varName to a known-safe identifier and reject any request-supplied override at the application layer.
  • Apply an allowlist regular expression that restricts varName to [A-Za-z_][A-Za-z0-9_]* before passing values to Squirrelly.
  • Isolate template rendering workloads in least-privilege containers to limit blast radius if injection succeeds.
bash
# Configuration example
npm install squirrelly@9.0.1
npm ls squirrelly

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSquirrelly Squirrelly

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability3.48%

  • 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 Squirrelly Repository

  • Samuzora CVE-2024-40453 Analysis
  • Vendor Resources
  • GitHub Pull Request #262
  • Latest CVEs
  • CVE-2026-50263: X.org X Server Use-After-Free Flaw

  • CVE-2026-21033: Samsung Assistant RCE Vulnerability

  • CVE-2026-21032: Samsung Assistant RCE Vulnerability

  • CVE-2026-50260: X.org X Server Use-After-Free Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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