Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-113651 Overview
CVE-2026-113651 is a path traversal vulnerability [CWE-22] in uploadfs, the file storage library used by ApostropheCMS, an open-source Node.js content management system. Versions prior to uploadfs 1.28.0 fail to sanitize attacker-controlled paths that reach the local backend. Parent-directory segments (../) can escape the configured upload directory and influence file reads, writes, and deletions anywhere on the host filesystem. Exploitation requires an application to expose relevant uploadfs operations to untrusted path input. The issue is fixed in uploadfs 1.28.0.
Critical Impact
Authenticated attackers with high privileges can read, write, or delete files outside the designated upload directory on the host filesystem, impacting integrity and confidentiality of application and system files.
Affected Products
- ApostropheCMS uploadfs library prior to version 1.28.0
- ApostropheCMS applications using the local backend for uploadfs
- Node.js applications that expose uploadfs operations to untrusted input
Discovery Timeline
- 2026-10-20 - CVE-2026-113651 published to NVD
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-113651
Vulnerability Analysis
The vulnerability resides in the local backend of uploadfs, which handles filesystem operations for ApostropheCMS. When callers supply path strings containing parent-directory traversal sequences such as ../, the library concatenates them against the configured upload root without normalizing or validating the resulting path. The resolved path can therefore reference arbitrary locations on the host filesystem.
An attacker able to influence the path argument of uploadfs read, write, or delete operations can escape the sandbox. This enables unauthorized file reads of application secrets, overwrites of application files, or deletion of files outside the upload directory. Impact depends on how an application exposes uploadfs operations and what privileges the Node.js process holds.
Root Cause
The root cause is missing path canonicalization in the local backend of uploadfs. The library trusts caller-provided path components rather than normalizing with path.resolve() and verifying containment within the configured upload directory before performing filesystem operations.
Attack Vector
Exploitation occurs over the network when an application forwards untrusted input, such as HTTP request parameters, into uploadfs operations as a path. The attacker must hold high privileges in the application context and the application must expose the relevant file operations. User interaction is not required.
// Patch excerpt - test artifacts added to .gitignore in packages/ai-helper
node_modules
npm-debug.log
.DS_Store
-package-lock.json
+package-lock.json
+# Test files
+test/public/uploads
+test/data
Source: ApostropheCMS Commit f84fd41
Detection Methods for CVE-2026-113651
Indicators of Compromise
- Web server or application logs containing ../ or URL-encoded (%2e%2e%2f) sequences in parameters routed to upload or media endpoints.
- Unexpected file creation, modification, or deletion events outside the configured ApostropheCMS upload directory.
- Access to sensitive files such as .env, config/, or node_modules/ originating from the Node.js process.
Detection Strategies
- Inspect HTTP access logs for traversal patterns targeting ApostropheCMS media and attachment routes.
- Audit uploadfs call sites in application code to confirm whether request-derived values flow into path arguments.
- Monitor filesystem telemetry for writes by the Node.js process outside the designated upload tree.
Monitoring Recommendations
- Enable filesystem auditing (auditd on Linux, equivalent on other platforms) for the directories hosting the ApostropheCMS application.
- Alert on process-level file operations referencing paths containing .. normalized by the operating system.
- Centralize Node.js and reverse-proxy logs in a SIEM and apply detection rules for CWE-22 traversal signatures.
How to Mitigate CVE-2026-113651
Immediate Actions Required
- Upgrade uploadfs to version 1.28.0 or later across all ApostropheCMS deployments.
- Review application code for any route that passes user-controlled strings into uploadfs path parameters.
- Restrict the operating system privileges of the Node.js process to limit the blast radius if traversal occurs.
Patch Information
The fix is delivered in uploadfs 1.28.0. Upstream commits 9500b8b and f84fd41 consolidate the security changes. Release notes are available in the uploadfs 1.28.0 release tag and the GHSA-gmfx-5g6x-rr72 advisory.
Workarounds
- Do not expose uploadfs read, write, or delete operations to unauthenticated or low-trust callers until patched.
- Validate and canonicalize path inputs in application code using path.resolve() and reject results outside the configured upload directory.
- Run the Node.js process under a dedicated low-privilege account with filesystem access restricted to the upload directory.
# Upgrade uploadfs to the patched release
npm install uploadfs@^1.28.0
# Verify the installed version
npm ls uploadfs
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

