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

CVE-2026-21440: AdonisJS Path Traversal Vulnerability

CVE-2026-21440 is a path traversal flaw in AdonisJS bodyparser that allows attackers to write arbitrary files to the server filesystem. This article covers technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2026-21440 Overview

A critical Path Traversal vulnerability has been identified in AdonisJS, a TypeScript-first web framework. The vulnerability exists in the multipart file handling component of the @adonisjs/bodyparser package, which may allow a remote attacker to write arbitrary files to arbitrary locations on the server filesystem. This type of vulnerability (CWE-22) can lead to severe consequences including remote code execution, data destruction, and complete system compromise.

Critical Impact

Remote attackers can exploit this path traversal vulnerability to write malicious files to any location on the server filesystem, potentially leading to remote code execution, configuration tampering, or deployment of web shells.

Affected Products

  • @adonisjs/bodyparser through version 10.1.1
  • @adonisjs/bodyparser 11.x prerelease versions prior to 11.0.0-next.6
  • AdonisJS applications utilizing vulnerable bodyparser versions for multipart file uploads

Discovery Timeline

  • January 2, 2026 - CVE-2026-21440 published to NVD
  • January 8, 2026 - Last updated in NVD database

Technical Details for CVE-2026-21440

Vulnerability Analysis

This vulnerability stems from improper path validation in the AdonisJS bodyparser's multipart file handling functionality. When processing file uploads, the application fails to properly sanitize user-controlled filename parameters, allowing attackers to inject path traversal sequences (such as ../) into filenames. This enables writing uploaded files outside of the intended upload directory to arbitrary locations on the server filesystem.

The attack can be executed remotely over the network without requiring any authentication or user interaction. The successful exploitation of this vulnerability could result in complete compromise of the affected server, as attackers could overwrite critical system files, deploy web shells, or modify application configuration files.

Root Cause

The root cause of CVE-2026-21440 is inadequate input validation in the multipart file upload handler. The @adonisjs/bodyparser package does not properly sanitize or validate the filename provided in multipart form data requests before using it to determine the file's storage location. This allows path traversal sequences embedded in the filename to escape the designated upload directory.

Attack Vector

The vulnerability is exploitable via a network-based attack vector. An attacker can craft a malicious multipart HTTP request containing path traversal sequences in the filename field. When the vulnerable AdonisJS application processes this request, it will write the uploaded file to the attacker-specified location on the filesystem.

The attack scenario involves:

  1. Attacker identifies an AdonisJS application with file upload functionality using a vulnerable version of @adonisjs/bodyparser
  2. Attacker crafts a multipart form request with a malicious filename containing directory traversal sequences (e.g., ../../../etc/cron.d/malicious)
  3. The bodyparser processes the request without proper path sanitization
  4. The uploaded file is written to the attacker-controlled path on the server filesystem
  5. Depending on the file location and content, this could result in code execution, configuration tampering, or other malicious outcomes

For detailed technical information about the exploitation mechanism, see the GitHub Security Advisory GHSA-gvq6-hvvp-h34h.

Detection Methods for CVE-2026-21440

Indicators of Compromise

  • Unusual file creation events outside of designated upload directories
  • Web server access logs showing multipart POST requests with suspicious filenames containing ../ sequences
  • Presence of unexpected files in system directories, web roots, or configuration paths
  • Modified cron jobs, systemd services, or other persistence mechanisms not created by administrators

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block path traversal sequences in multipart form data
  • Monitor file system integrity using tools like AIDE, Tripwire, or SentinelOne to detect unauthorized file modifications
  • Analyze HTTP request logs for filenames containing encoded or raw path traversal patterns (../, ..%2f, ..%5c)
  • Deploy intrusion detection systems (IDS) with signatures for path traversal attack patterns

Monitoring Recommendations

  • Enable detailed logging for file upload operations in AdonisJS applications
  • Set up alerts for file creation events in sensitive directories such as /etc/, /var/www/, and application configuration paths
  • Monitor for anomalous network traffic patterns targeting file upload endpoints
  • Implement real-time file integrity monitoring on critical system and application directories

How to Mitigate CVE-2026-21440

Immediate Actions Required

  • Update @adonisjs/bodyparser to version 10.1.2 or later for production environments
  • Update @adonisjs/bodyparser to version 11.0.0-next.6 or later if using 11.x prerelease versions
  • Audit file systems for evidence of exploitation and remove any suspicious files
  • Review web server access logs for attempted exploitation attempts

Patch Information

The AdonisJS team has released security patches to address this vulnerability. The fixes are available in the following versions:

  • Version 10.1.2 - Stable branch fix
  • Version 11.0.0-next.6 - Prerelease branch fix

The patches implement proper path sanitization to prevent directory traversal attacks during file upload processing. Relevant commits include:

  • Commit 143a16f3
  • Commit 6795c0e3

Workarounds

  • Implement a reverse proxy or WAF rule to strip or reject requests containing path traversal sequences in multipart filenames
  • Add custom middleware to validate and sanitize uploaded filenames before they reach the bodyparser
  • Configure file upload destinations with restrictive permissions to limit the impact of potential exploitation
  • Use chroot or containerization to isolate the web application and limit filesystem access
bash
# Example: Update @adonisjs/bodyparser to patched version
npm update @adonisjs/bodyparser@10.1.2

# Or for prerelease users
npm update @adonisjs/bodyparser@11.0.0-next.6

# Verify installed version
npm list @adonisjs/bodyparser

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechAdonisjs

  • SeverityCRITICAL

  • CVSS Score9.2

  • EPSS Probability0.32%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/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
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Release v10.1.2

  • GitHub Release v11.0.0-next.6

  • GitHub Security Advisory GHSA-gvq6-hvvp-h34h
  • Related CVEs
  • CVE-2026-40255: AdonisJS HTTP Server CSRF Vulnerability

  • CVE-2026-25762: AdonisJS Bodyparser DoS Vulnerability

  • CVE-2026-25754: AdonisJS Prototype Pollution 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