{"answers":{"affected":"2 open source packages ship an affected version, including @apostrophecms/import-export. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-32731 exists.","fix":"Upgrade @apostrophecms/import-export to 3.5.3 or later.","what":"CVE-2026-32731 is a critical path traversal vulnerability in apostrophecms import-export, published on 18 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-32731 and fix it if it is affected.\n\nWhat it is: CVE-2026-32731 is a critical path traversal vulnerability in apostrophecms import-export, published on 18 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-32731 exists.\n\nAffected packages and fixed versions:\n- @apostrophecms/import-export (npm): affected all versions; fixed in 3.5.3\n- @apostrophecms/import-export (npm): affected all versions; fixed in 3.5.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-32731/ (Markdown: https://insights.sbomify.com/CVE-2026-32731/index.md)","id":"CVE-2026-32731","markdown":"https://insights.sbomify.com/CVE-2026-32731/index.md","name":"CVE-2026-32731","record":{"aliases":["GHSA-mwxc-m426-3f78"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"ApostropheCMS import-export","requires_auth":"low_privilege","summary":"Attackers with content modify permissions can upload malicious archives to write arbitrary files outside the intended directory, potentially executing code.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"import-export","vendor":"apostrophecms"}],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2026-03-19","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-03-19T02:28:15Z","kind":"github_poc","ref":"https://github.com/0xEr3n/CVE-2026-32731","stars":0,"title":"POC for CVE-2026-32731"}],"tier":"weaponised"},"has_fix":true,"headline":"ApostropheCMS has Arbitrary File Write (Zip Slip / Path Traversal) in Import-Export Gzip Extraction","id":"CVE-2026-32731","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"XSS in @leanprover/unicode-input-component","id":"CVE-2026-32732"},"packages":[{"ecosystem":"npm","fixed":["3.5.3"],"introduced":["0"],"last_affected":[],"package":"@apostrophecms/import-export","purl":null,"source":"GHSA-mwxc-m426-3f78"},{"ecosystem":"npm","fixed":["3.5.3"],"introduced":["0"],"last_affected":[],"package":"@apostrophecms/import-export","purl":"pkg:npm/%40apostrophecms/import-export","source":"GHSA-mwxc-m426-3f78"}],"prev":{"headline":"ApostropheCMS MFA/TOTP Bypass via Incorrect MongoDB Query in Bearer Token Middleware","id":"CVE-2026-32730"},"products":["import-export"],"published":"2026-03-18","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-03-19","vendors":["apostrophecms"]},"summary":"Attackers with content modify permissions can upload malicious archives to write arbitrary files outside the intended directory, potentially executing code.","url":"https://insights.sbomify.com/CVE-2026-32731/"}