{"id":"CVE-2026-27606","published":"2026-02-25T02:08:06Z","modified":"2026-09-10T12:05:04Z","title":"Rollup 4 has Arbitrary File Write via Path Traversal","vendor":"rollup","product":"rollup","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0184,"percentile":0.795,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/rollup/rollup/security/advisories/GHSA-mw96-cpmx-2vgc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rollup/rollup/commit/c60770d7aaf750e512c1b2774989ea4596e660b2","tags":["x_refsource_MISC"]},{"url":"https://github.com/rollup/rollup/commit/c8cf1f9c48c516285758c1e11f08a54f304fd44e","tags":["x_refsource_MISC"]},{"url":"https://github.com/rollup/rollup/commit/d6dee5e99bb82aac0bee1df4ab9efbde455452c3","tags":["x_refsource_MISC"]},{"url":"https://github.com/rollup/rollup/releases/tag/v2.80.0","tags":["x_refsource_MISC"]},{"url":"https://github.com/rollup/rollup/releases/tag/v3.30.0","tags":["x_refsource_MISC"]},{"url":"https://github.com/rollup/rollup/releases/tag/v4.59.0","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-27606","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2442530","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27606.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:13512","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:13508","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:13545","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:6174","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:6802","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:10175","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:8483","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:5132","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:5665","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:5649","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":27.1,"factors":[{"name":"EPSS percentile","points":15.9},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.16}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-10-11","earliestUrl":"https://github.com/AaaronP/Seguridad---Proyecto-de-investigaci-n","repos":[{"name":"AaaronP/Seguridad---Proyecto-de-investigaci-n","url":"https://github.com/AaaronP/Seguridad---Proyecto-de-investigaci-n","stars":0,"created":"2026-10-11"}]},"first":{"date":"2026-10-11","source":"PoC-in-GitHub","url":"https://github.com/AaaronP/Seguridad---Proyecto-de-investigaci-n"},"provenance":"source"},"vendorSlug":"rollup","affectedVersions":[{"vendor":"rollup","product":"rollup","versions":["< 2.80.0",">= 3.0.0, < 3.30.0",">= 4.0.0, < 4.59.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-02-25T20:09:59.552224Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"rollup","vulnerableRanges":["<2.80.0",">=3.0.0, <3.30.0",">=4.0.0, <4.59.0"],"patched":["2.80.0","3.30.0","4.59.0"],"from":["GHSA-mw96-cpmx-2vgc"],"provenance":"source"}],"summary":{"text":"The Rollup JavaScript module bundler (v4.x and earlier affected releases) contains a path traversal flaw in its core engine's output filename sanitisation, which fails to restrict file names. An attacker who can control output filenames, for example through CLI named inputs, manual chunk aliases, or a malicious plugin, and who can operate without authentication or user interaction, can use ../ sequences to overwrite arbitrary files the build process can write to, potentially leading to remote code execution by replacing critical system or user configuration files.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T05:38:26Z"},"euvd":{"id":"EUVD-2026-8589","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-47068","published":"2024-09-23","fixed":"4.22.4","kev":false,"link":{"from":"CVE-2024-47068","to":"CVE-2026-27606","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:rollup","fromFixed":"2.79.2","toFixed":"2.80.0","daysApart":520},{"kind":"version-step","provenance":"source","package":"npm:rollup","fromFixed":"3.29.5","toFixed":"3.30.0","daysApart":520}]}},{"cve":"CVE-2026-27606","published":"2026-02-25","fixed":"4.59.0","kev":false}],"package":"npm:rollup"}}