Vulnerability library
Security checkFebruary 25, 2026

Rollup 4 has Arbitrary File Write via Path Traversal

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmrollup

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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 scan

Related Issues

See something that needs correcting? Let us knowUpdated February 25, 2026