Vulnerabilities/

Rollup 4 has Arbitrary File Write via Path Traversal

Severity:
High

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:

References

Related Issues

Tags:
npm
rollup
Anything's wrong? Let us know Last updated on February 25, 2026