Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @apostrophecms/import-export
  4. ›
  5. CVE-2026-32731

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

March 18, 2026

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.


References

  • github.com/advisories/GHSA-mwxc-m426-3f78
  • github.com/apostrophecms/apostrophe
  • github.com/apostrophecms/apostrophe/security/advisories/GHSA-mwxc-m426-3f78
  • nvd.nist.gov/vuln/detail/CVE-2026-32731

Code Behaviors & Features

Detect and mitigate CVE-2026-32731 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 3.5.3

Fixed versions

  • 3.5.3

Solution

Upgrade to version 3.5.3 or above.

Impact 9.9 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/@apostrophecms/import-export/CVE-2026-32731.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:21 +0000.