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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None; Exploit maturity: Proof of concept
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.84% (percentile 80, 2026-11-26)
- **CWE:** CWE-22
- **Aliases:** GHSA-mw96-cpmx-2vgc
- **Published:** 2026-02-25T02:08:06.682Z
- **Modified:** 2026-09-10T13:18:01.097Z

## Who should check

- Projects that depend on npm package rollup (\< 2.80.0)
- Anyone running rollup \< 2.80.0; \>= 3.0.0, \< 3.30.0; \>= 4.0.0, \< 4.59.0

## Description

Rollup is a module bundler for JavaScript. Versions prior to 2.80.0, 3.30.0, and 4.59.0 of 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. Versions 2.80.0, 3.30.0, and 4.59.0 contain a patch for the issue.

## Affected and fixed versions

- npm `rollup`: affected \< 2.80.0; fixed 2.80.0, 3.30.0, 4.59.0 (osv)
- rollup: \< 2.80.0; \>= 3.0.0, \< 3.30.0; \>= 4.0.0, \< 4.59.0 (cvelist)

## Mitigation

- Upgrade rollup to one of 2.80.0, 3.30.0, 4.59.0 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-27606. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-27606.md
Affected: rollup < 2.80.0
Fixed in: 2.80.0, 3.30.0, 4.59.0

Steps:
1. Search this machine and project for rollup (npm), rollup: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-27606 being exploited?

There is no confirmed exploitation: CVE-2026-27606 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.84% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-27606?

High: CVSS 8.8 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-27606?

rollup \< 2.80.0.

### Is there a fix for CVE-2026-27606?

Yes. Fixed in 2.80.0, 3.30.0, 4.59.0. Upgrade rollup to one of 2.80.0, 3.30.0, 4.59.0 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-27606?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/rollup/rollup/security/advisories/GHSA-mw96-cpmx-2vgc>
- vendor: <https://access.redhat.com/errata/RHSA-2026:13512>
- vendor: <https://access.redhat.com/errata/RHSA-2026:13508>
- vendor: <https://access.redhat.com/errata/RHSA-2026:13545>
- vendor: <https://access.redhat.com/errata/RHSA-2026:6174>
- vendor: <https://access.redhat.com/errata/RHSA-2026:6802>
- vendor: <https://access.redhat.com/errata/RHSA-2026:10175>
- vendor: <https://access.redhat.com/errata/RHSA-2026:8483>
- vendor: <https://access.redhat.com/errata/RHSA-2026:5132>
- vendor: <https://access.redhat.com/errata/RHSA-2026:5665>
- vendor: <https://access.redhat.com/errata/RHSA-2026:5649>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-27606>
- patch: <https://github.com/rollup/rollup/commit/c60770d7aaf750e512c1b2774989ea4596e660b2>
- patch: <https://github.com/rollup/rollup/commit/c8cf1f9c48c516285758c1e11f08a54f304fd44e>
- patch: <https://github.com/rollup/rollup/commit/d6dee5e99bb82aac0bee1df4ab9efbde455452c3>
- other: <https://github.com/rollup/rollup/releases/tag/v2.80.0>
- other: <https://github.com/rollup/rollup/releases/tag/v3.30.0>
- other: <https://github.com/rollup/rollup/releases/tag/v4.59.0>
- other: <https://access.redhat.com/security/cve/CVE-2026-27606>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2442530>
- other: <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27606.json>
- other: <https://github.com/rollup/rollup>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-27606>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-mw96-cpmx-2vgc> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-27606> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-27606>
