# CVE-2026-32731: ApostropheCMS has Arbitrary File Write (Zip Slip / Path Traversal) in Import-Export Gzip Extraction

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-18T19:49:07.000Z
- Modified: 2026-06-17T10:36:17.280Z
- Also known as: GHSA-mwxc-m426-3f78
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

ApostropheCMS is an open-source content management framework. Prior to version 3.5.3 of `@apostrophecms/import-export`,
The `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.

(As written by CVE List.)

## Affected

- apostrophecms import-export: < 3.5.3; before 3.5.3
- @apostrophecms/import-export (npm): before 3.5.3

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-mwxc-m426-3f78> (exploit, vendor-advisory, web)
- <https://github.com/apostrophecms/apostrophe> (package)

## Sources

- CVE List: [CVE-2026-32731](https://www.cve.org/CVERecord?id=CVE-2026-32731), CVE Terms of Use, modified 2026-03-19
- GitHub Advisory Database: [GHSA-mwxc-m426-3f78](https://github.com/advisories/GHSA-mwxc-m426-3f78), CC-BY-4.0, modified 2026-03-18
- NVD: [CVE-2026-32731](https://nvd.nist.gov/vuln/detail/CVE-2026-32731), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-32731 · Whole record: https://cve.day/CVE-2026-32731.json · Rebuilt by cve.day 2026-11-25T22:59:16.149Z
