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-27606

CVE-2026-27606: Rollup.js Path Traversal Vulnerability

CVE-2026-27606 is a path traversal vulnerability in Rollup.js that allows attackers to write arbitrary files and achieve remote code execution. This article covers the technical details, affected versions, and mitigation.

Published: February 27, 2026

CVE-2026-27606 Overview

CVE-2026-27606 is a Path Traversal vulnerability in Rollup, a popular module bundler for JavaScript. The vulnerability exists in versions prior to 2.80.0, 3.30.0, and 4.59.0 due to insecure file name sanitization in the core bundling engine. An attacker who can control output filenames through CLI named inputs, manual chunk aliases, or malicious plugins can use traversal sequences (../) to write files to arbitrary locations on the host filesystem where the build process has write permissions.

Critical Impact

Successful exploitation can lead to persistent Remote Code Execution (RCE) by overwriting critical system or user configuration files, compromising the integrity of development and CI/CD environments.

Affected Products

  • Rollup versions prior to 2.80.0
  • Rollup versions 3.x prior to 3.30.0
  • Rollup versions 4.x prior to 4.59.0

Discovery Timeline

  • February 25, 2026 - CVE-2026-27606 published to NVD
  • February 25, 2026 - Last updated in NVD database

Technical Details for CVE-2026-27606

Vulnerability Analysis

The vulnerability stems from insufficient validation of output file paths during the bundling process. Rollup's core engine failed to properly sanitize filenames before writing bundled output, allowing path traversal sequences to escape the designated output directory. When an attacker can influence the output filename—whether through CLI named inputs, manual chunk configuration, or by injecting a malicious plugin into the build chain—they can craft filenames containing ../ sequences that traverse outside the intended output directory.

This weakness is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory). The network-based attack vector combined with the lack of required privileges makes this vulnerability particularly dangerous in CI/CD pipelines and automated build systems where Rollup processes potentially untrusted input configurations.

Root Cause

The root cause lies in the path handling functions within browser/src/path.ts and src/Bundle.ts. The original implementation lacked proper path normalization and boundary validation to ensure output files remain within the configured output directory. The bundler would accept filenames containing parent directory references without stripping or rejecting them, ultimately allowing writes to locations outside the output directory bounds.

Attack Vector

An attacker can exploit this vulnerability through several vectors:

  1. CLI Named Inputs: Providing malicious input names via the command line that include traversal sequences
  2. Manual Chunk Aliases: Configuring chunk aliases in rollup.config.js with path traversal payloads
  3. Malicious Plugins: Crafting or injecting plugins that return filenames with ../ sequences during the bundle generation phase

The attack ultimately results in arbitrary file writes to any location the Node.js process has permissions for, enabling scenarios such as overwriting .bashrc, .profile, SSH authorized keys, or CI/CD configuration files for persistent compromise.

typescript
// Security patch - Path normalization to prevent directory traversal
// Source: https://github.com/rollup/rollup/commit/c60770d7aaf750e512c1b2774989ea4596e660b2

export function join(...segments: string[]): string {
	const joined = segments.join('/');
	const absolute = ANY_SLASH_REGEX.test(joined[0]);
	return (
		(absolute ? '/' : '') +
		(normalizePathSegments(joined.split(ANY_SLASH_REGEX), absolute) || (absolute ? '' : '.'))
	);
}

function normalizePathSegments(parts: string[], absolute = false): string {
	const normalized: string[] = [];
	for (const part of parts) {
		if (part === '..') {
			if (normalized.length > 0 && normalized[normalized.length - 1] !== '..') {
				normalized.pop();
			} else if (!absolute) {
				normalized.push('..');
			}
		} else if (part !== '.' && part !== '') {
			normalized.push(part);
		}
	}
	return normalized.join('/');
}

Detection Methods for CVE-2026-27606

Indicators of Compromise

  • Unexpected file modifications outside the configured Rollup output directory during build processes
  • Build logs showing chunk or asset filenames containing ../ sequences
  • Newly created or modified configuration files (e.g., .bashrc, .profile, .gitconfig) with timestamps correlating to build execution times
  • Suspicious plugins in node_modules or rollup.config.js that manipulate output filenames

Detection Strategies

  • Implement file integrity monitoring (FIM) on critical system and user configuration files to detect unauthorized modifications during build processes
  • Audit Rollup configuration files and installed plugins for any filename manipulation that includes path traversal characters
  • Review CI/CD pipeline logs for build outputs that reference paths outside expected directories
  • Use static analysis tools to scan rollup.config.js and custom plugins for suspicious filename patterns

Monitoring Recommendations

  • Enable verbose logging in build systems to capture full output paths for all generated files
  • Monitor the output directory structure after builds for any symbolic links or unexpected directory hierarchies
  • Implement sandboxing for build processes to limit filesystem write permissions to designated directories only
  • Set up alerts for any filesystem writes outside designated build output directories during CI/CD execution

How to Mitigate CVE-2026-27606

Immediate Actions Required

  • Upgrade Rollup to patched versions immediately: 2.80.0, 3.30.0, or 4.59.0 depending on your major version line
  • Audit all Rollup configurations and installed plugins for potential path traversal payloads
  • Review recent build outputs for any files written outside expected output directories
  • Implement filesystem sandboxing or restricted permissions for build processes as a defense-in-depth measure

Patch Information

The Rollup maintainers have released patched versions that properly validate output paths and prevent files from being written outside the designated output directory. The fix introduces a join function with proper path normalization and a logFileNameOutsideOutputDirectory error handler in src/Bundle.ts.

Patched versions are available:

  • Rollup v2.80.0
  • Rollup v3.30.0
  • Rollup v4.59.0

For more details, see the GitHub Security Advisory GHSA-mw96-cpmx-2vgc.

Workarounds

  • Run Rollup build processes in containerized environments with strict filesystem isolation and read-only mounts for sensitive directories
  • Implement pre-build validation scripts that scan configuration files for path traversal sequences before executing Rollup
  • Use operating system-level protections to restrict the build process user's write permissions to only the necessary output directory
  • Temporarily avoid using CLI named inputs or manual chunk aliases from untrusted sources until patching is complete
bash
# Configuration example - Upgrade Rollup to patched version
npm update rollup@latest

# Or specify the exact patched version for your major version line
npm install rollup@4.59.0  # For v4.x users
npm install rollup@3.30.0  # For v3.x users
npm install rollup@2.80.0  # For v2.x users

# Verify installed version
npx rollup --version

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechRollup

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.47%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:P/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-22
  • Technical References
  • GitHub Release v2.80.0

  • GitHub Release v3.30.0

  • GitHub Release v4.59.0
  • Vendor Resources
  • GitHub Commit Change

  • GitHub Commit Change

  • GitHub Commit Change

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2024-47068: Rollupjs Rollup XSS Vulnerability
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