Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. rollup
  4. ›
  5. CVE-2026-27606

CVE-2026-27606: Rollup 4 has Arbitrary File Write via Path Traversal

February 25, 2026

The Rollup module bundler (specifically v4.x and present in current source) is vulnerable to an Arbitrary File Write via Path Traversal. Insecure file name sanitization in the core engine allows an attacker to control output filenames (e.g., via CLI named inputs, manual chunk aliases, or malicious plugins) and use traversal sequences (../) to overwrite files anywhere on the host filesystem that the build process has permissions for. This can lead to persistent Remote Code Execution (RCE) by overwriting critical system or user configuration files.

References

  • github.com/advisories/GHSA-mw96-cpmx-2vgc
  • github.com/rollup/rollup
  • github.com/rollup/rollup/commit/c60770d7aaf750e512c1b2774989ea4596e660b2
  • github.com/rollup/rollup/commit/c8cf1f9c48c516285758c1e11f08a54f304fd44e
  • github.com/rollup/rollup/commit/d6dee5e99bb82aac0bee1df4ab9efbde455452c3
  • github.com/rollup/rollup/releases/tag/v2.80.0
  • github.com/rollup/rollup/releases/tag/v3.30.0
  • github.com/rollup/rollup/releases/tag/v4.59.0
  • github.com/rollup/rollup/security/advisories/GHSA-mw96-cpmx-2vgc
  • nvd.nist.gov/vuln/detail/CVE-2026-27606

Code Behaviors & Features

Detect and mitigate CVE-2026-27606 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.80.0, all versions starting from 3.0.0 before 3.30.0, all versions starting from 4.0.0 before 4.59.0

Fixed versions

  • 2.80.0
  • 3.30.0
  • 4.59.0

Solution

Upgrade to versions 2.80.0, 3.30.0, 4.59.0 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/rollup/CVE-2026-27606.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 27 Feb 2026 00:18:11 +0000.