@apostrophecms/import-export: ApostropheCMS: Import archives can exhaust server storage and deny service
What fixes it
- 3.7.1@apostrophecms/import-export, npmGitHub
npm install @apostrophecms/import-export@3.7.1
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
Review scope and evidence limits
Package: @apostrophecms/import-export, version 3.7.0.
Release tag reviewed: @apostrophecms/import-export@3.7.0, commit 9500b8b0e1d630d5e07fbb5fd2c25ed0943845ce (September 30, 2026).
Current main reviewed: 5ce3732be0ebdebb4db0f8ef160c81e8671157e6.
The importer, gzip extractor, import permission gate, and core permission implementation have no differences between that release tag and the reviewed main. This follow-up is a static remediation review. We have not repeated the original end-to-end reproductions against the latest release or tested a deployed site. Current exploitability and impact therefore still require maintainer validation; the observations below establish that the reported security checks remain absent in public source. The original emailed PDF contains the original reproduction material. Please refer to that existing private attachment.
Import archive extraction lacks resource quotas and failure cleanup
The current gzip extractor handles destination write errors and waits for write completion; those parts of the original report should no longer be treated as unchanged. The import routes also now require a logged-in user before big-upload processing, as covered by GHSA-86wm-68pq-5jwq.
However, extract() still writes expanded archive entries without per-entry, aggregate decompressed-byte, or entry-count quotas. Archive parsing still precedes document-type authorization. If extraction or parsing fails, import() notifies and rethrows before the later storage.remove() call, with no unconditional cleanup around that lifecycle. The reported residual risk is excessive storage consumption and retained extraction/staging artifacts from authenticated imports. Handling a write error and requiring login do not enforce a storage budget.
Suggested remediation: add configurable streaming quotas based on actual decompressed bytes, cap entries and allowed entry types, bound concurrent imports, and clean local and uploadfs artifacts on every failure. Retain continuation artifacts only under explicit ownership, expiry and total-storage limits.
Source references:
Coordination
Vivek R / Winfunc Original reporting team: Mufeed VH / Winfunc
Text from GitHub Advisory Database
Affected versions 4
- @apostrophecms/import-export, npm< 3.7.1GitHub
- apostropheaffected: < 4.34.0CVE List
- import-exportaffected: < 3.7.1CVE List
- @apostrophecms/import-export, npmfrom first release, fixed in 3.7.1OSV
References 6
- github.com/apostrophecms/apostrophe/commit/06e4b377f3c360f9e89c32dccd7e505ad5ddf498Fixvia CVE List
- github.com/apostrophecms/apostrophe/commit/40b989b1a9dd23d30029b8ce7668634265cfe5eaFixvia CVE List
- github.com/apostrophecms/apostrophe/releases/tag/@apostrophecms/import-export@3.7.1Fixvia CVE List
- github.com/apostrophecms/apostrophe/security/advisories/GHSA-9g7p-m758-rp72Advisoryvia CVE List
- github.com/advisories/GHSA-9g7p-m758-rp72Advisoryvia GitHub
- nvd.nist.gov/vuln/detail/CVE-2026-112955Referencevia GitHub