Description
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.
Recommendation
Update the rollup package to the latest compatible version. Followings are version details:
Affected version(s): **>= 4.0.0, < 4.59.0 >= 3.0.0, < 3.30.0 < 2.80.0** Patched version(s): **4.59.0 3.30.0 2.80.0**
References
Could your website be exposed too?
SmartScanner can check your website for Rollup 4 has Arbitrary File Write via Path Traversal and gives you actionable findings to investigate.
Start a free scanRelated Issues
- SillyTavern has a path traversal in `/api/chats/import` allows arbitrary file write outside intended chat directory - CVE-2026-34522
- Saltcorn has an Unauthenticated Path Traversal in sync endpoints, allowing arbitrary file write and directory read - CVE-2026-40163
- Electerm runWidget has a path traversal that leads to arbitrary code execution - CVE-2026-43940
- @appium/support has a Zip Slip arbitrary file write in its ZIP extraction - CVE-2026-30973


