Rollup
Rollup 4 has Arbitrary File Write via Path Traversal
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.80.0
- >= 3.0.0, < 3.30.0
- >= 4.0.0, < 4.59.0
Fixed in 2.80.0, 3.30.0, 4.59.0
Mitigation
Upgrade rollup to 2.80.0 or 3.30.0 or 4.59.0 or later.
References
- Vendor advisory github.com/rollup/rollup/security/advisories/G…
- Patch github.com/rollup/rollup/commit/c60770d7aaf750…
- Patch github.com/rollup/rollup/commit/c8cf1f9c48c516…
4 more
- Patch github.com/rollup/rollup/commit/d6dee5e99bb82a…
- Release notes github.com/rollup/rollup/releases/tag/v2.80.0
- Release notes github.com/rollup/rollup/releases/tag/v3.30.0
- Release notes github.com/rollup/rollup/releases/tag/v4.59.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.1 pending
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| AaaronP/Seguridad---Proyecto-de-investigaci-n | 11 Oct 2026 +229 d | 0 | Pending |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.