{"id":"CVE-2026-32731","published":"2026-03-18T22:03:25Z","modified":"2026-03-19T16:04:47Z","title":"ApostropheCMS has Arbitrary File Write (Zip Slip / Path Traversal) in Import-Export Gzip Extraction","vendor":"apostrophecms","product":"import-export","tier":"tail","description":{"text":"ApostropheCMS is an open-source content management framework. Prior to version 3.5.3 of `@apostrophecms/import-export`,\nThe `extract()` function in `gzip.js` constructs file-write paths using `fs.createWriteStream(path.join(exportPath, header.name))`. `path.join()` does not resolve or sanitise traversal segments such as `../`. It concatenates them as-is, meaning a tar entry named `../../evil.js` resolves to a path outside the intended extraction directory. No canonical-path check is performed before the write stream is opened. This is a textbook Zip Slip vulnerability. Any user who has been granted the Global Content Modify permission — a role routinely assigned to content editors and site managers — can upload a crafted `.tar.gz` file through the standard CMS import UI and write attacker-controlled content to any path the Node.js process can reach on the host filesystem. Version 3.5.3 of `@apostrophecms/import-export` fixes the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00687,"percentile":0.47923,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-mwxc-m426-3f78","tags":["x_refsource_CONFIRM"]}],"priority":{"score":21.6,"factors":[{"name":"EPSS percentile","points":9.58},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":7.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-03-19","earliestUrl":"https://github.com/0xEr3n/CVE-2026-32731","repos":[{"name":"0xEr3n/CVE-2026-32731","url":"https://github.com/0xEr3n/CVE-2026-32731","stars":0,"created":"2026-03-19"}]},"first":{"date":"2026-03-19","source":"PoC-in-GitHub","url":"https://github.com/0xEr3n/CVE-2026-32731"},"provenance":"source"},"vendorSlug":"apostrophecms","affectedVersions":[{"vendor":"apostrophecms","product":"import-export","versions":["< 3.5.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-03-19T15:54:58.106435Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@apostrophecms/import-export","vulnerableRanges":["<3.5.3"],"patched":["3.5.3"],"from":["GHSA-mwxc-m426-3f78"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-12978","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-32731","published":"2026-03-18","fixed":"3.5.3","kev":false},{"cve":"CVE-2026-63667","published":"2026-08-17","fixed":"3.6.2","kev":false,"link":{"from":"CVE-2026-32731","to":"CVE-2026-63667","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@apostrophecms/import-export","fromFixed":"3.5.3","toFixed":"3.6.2","daysApart":152}]}},{"cve":"CVE-2026-113662","published":"2026-10-20","fixed":"3.7.0","kev":false},{"cve":"CVE-2026-113664","published":"2026-10-20","fixed":"3.7.0","kev":false}],"package":"npm:@apostrophecms/import-export"}}