CVE-2026-114516: CVE-2026-114516: Pre-Authentication Path Traversal and Arbitrary File Read in Etherpad
CVE-2026-114516: Pre-Authentication Path Traversal and Arbitrary File Read in Etherpad Vulnerability ID: CVE-2026-114516 CVSS Score: 9.8 Published: 2026-11-20 A pre-authentication path traversal vulnerability exists
CVE-2026-114516: Pre-Authentication Path Traversal and Arbitrary File Read in Etherpad
Vulnerability ID: CVE-2026-114516
CVSS Score: 9.8
Published: 2026-11-20
A pre-authentication path traversal vulnerability exists in Etherpad versions 1.8.14 prior to 3.3.3 within the /static/* plugin asset handler. In src/node/utils/Minify.ts, an unconditional backslash-to-forward-slash conversion is executed after pathname sanitization has already concluded. On POSIX systems, this transforms benign backslash characters into directory traversal sequences (../), allowing unauthenticated remote attackers to read arbitrary files from the host filesystem, extract administrative credentials from settings.json, and achieve remote code execution via the plugin installation interface.
TL;DR
Etherpad versions 1.8.14 through 3.3.2 contain an unauthenticated path traversal flaw (CVSS 9.8) in src/node/utils/Minify.ts. By submitting URL-encoded backslashes (..%5C) to the /static/* endpoint on POSIX hosts, attackers bypass path sanitization and can read arbitrary files such as settings.json, leading to administrative takeover and remote code execution. Upgrade to version 3.3.3.
⚠️ Exploit Status: POC
Technical Details
- CVE / Advisory ID: CVE-2026-114516 / GHSA-mc8w-wjhw-45x5
- Primary Weakness: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- CVSS v3.1 Score: 9.8 Critical (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
- Attack Vector: Unauthenticated Network HTTP GET request to /static/plugins/ep_etherpad-lite/static/*
- Affected Versions: Etherpad >= 1.8.14, < 3.3.3 (POSIX deployments)
- Patched Version: Etherpad 3.3.3 (Commit 9c8d16d50e2fdfd9693ab35c43280410cb4db2fc)
- Impact: Arbitrary File Read leading to Credential Disclosure and Remote Code Execution
- CISA KEV Status: Not Listed
Affected Systems
- Etherpad (ep_etherpad-lite) versions >= 1.8.14 and < 3.3.3 on POSIX systems (Linux, macOS, FreeBSD)
-
Etherpad (ep_etherpad-lite): >= 1.8.14, < 3.3.3 (Fixed in:
3.3.3)
Code Analysis
Commit: 9c8d16d
fix: pre-auth path traversal in /static/* handler (GHSA-mc8w-wjhw-45x5) (#8081)
--- a/src/node/utils/Minify.ts
+++ b/src/node/utils/Minify.ts
@@ -177,13 +177,18 @@ const _minify = async (req:any, res:any) => {
const plugin = plugins.plugins[library];
const pluginPath = plugin.package.realPath;
filename = path.join(pluginPath, libraryPath);
- // On Windows, path.relative converts forward slashes to backslashes. Convert them back
- // because some of the code below assumes forward slashes. Node.js treats both the backlash
- // and the forward slash characters as pathname component separators on Windows so this does
- // not change the meaning of the pathname. This conversion does not introduce a directory
- // traversal vulnerability because all '..\\' substrings have already been removed by
- // sanitizePathname.
- filename = filename.replace(/\\/g, '/');
+ // On Windows, path.join converts forward slashes to backslashes. Convert them back because
+ // some of the code below assumes forward slashes. Node.js treats both the backslash and the
+ // forward slash characters as pathname component separators on Windows so this does not
+ // change the meaning of the pathname on Windows.
+ //
+ // THIS CONVERSION MUST ONLY BE DONE ON WINDOWS. On POSIX systems a backslash is an ordinary
+ // filename byte, not a separator, so sanitizePathname() deliberately leaves '..\\' segments
+ // untouched (they are harmless there). Replacing '\\' with '/' unconditionally would turn
+ // those already-sanitized bytes back into '../' path components *after* the traversal check
+ // has run, reintroducing a directory-traversal / arbitrary-file-read vulnerability
+ // (GHSA-mc8w-wjhw-45x5).
+ if (path.sep === '\\') filename = filename.replace(/\\/g, '/');
} else if (LIBRARY_WHITELIST.indexOf(library) !== -1) {
Exploit Details
- GitHub Security Advisory & Regression Test: Official commit containing functional regression tests in src/tests/backend/specs/staticPathTraversal.ts demonstrating unauthenticated retrieval of /etc/passwd and /proc/self/cwd/settings.json via ..%5C sequences.
Mitigation Strategies
- Upgrade Etherpad to version 3.3.3 or later to restrict backslash path normalization strictly to Windows environments.
- Deploy reverse proxy or WAF rules to block HTTP requests containing literal backslashes () or URL-encoded backslashes (%5C, %5c) in the request URI.
- Run the Etherpad Node.js process under a dedicated, low-privilege POSIX service account with strict filesystem read boundaries (e.g., systemd ProtectSystem, ProtectHome, and ReadWritePaths directives).
- Rotate all sensitive credentials stored in settings.json, APIKEY.txt, and process environment variables if the instance was exposed to untrusted networks prior to patching.
Remediation Steps:
- Fetch the latest release tags from the official repository: git fetch --tags
- Check out the patched release tag: git checkout v3.3.3
- Install updated dependencies and rebuild the application: pnpm i && pnpm run build:etherpad
- Restart the Etherpad service and verify that requests containing ..%5C under /static/plugins/ep_etherpad-lite/static/ return HTTP 404.
References
- GitHub Security Advisory: GHSA-mc8w-wjhw-45x5
- Etherpad Pull Request #8081: fix: pre-auth path traversal in /static/* handler
- Fix Commit 9c8d16d50e2fdfd9693ab35c43280410cb4db2fc
- National Vulnerability Database (NVD) - CVE-2026-114516
- CVE.org Record: CVE-2026-114516
- CVEListV5 Official JSON Record for CVE-2026-114516
Read the full report for CVE-2026-114516 on our website for more details including interactive diagrams and full exploit analysis.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.