{"vuln_id":"CVE-2026-114516","aliases":["GHSA-mc8w-wjhw-45x5"],"description":"Etherpad: Pre-auth arbitrary file read","published_at":"2026-11-19T22:17:54.773000Z","modified_at":"2026-11-20T14:17:43.853000Z","first_seen_at":"2026-11-21T19:15:19.296916Z","severity":"critical","severity_source":"nvd","cvss_score":9.8,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-22","CWE-200","CWE-306"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.01163,"epss_percentile":0.68025,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-114516"},"matched_alias":null,"items":[{"id":10927,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-mc8w-wjhw-45x5: Etherpad: Pre-auth arbitrary file read","summary":"Etherpad: Pre-auth arbitrary file read\n\n### Summary\n\nAn unauthenticated path‑traversal / arbitrary file read vulnerability in Etherpad's /static/* handler allows any remote, unauthenticated user to read any file on the server's filesystem (e.g. GET /static/plugins/ep_etherpad-lite/static/..%5C..%5C..%5C..%5C..%5C..%5C..%5Cetc/passwd returns /etc/passwd) available to the user running the etherpad software. Because the endpoint is mounted before the authentication middleware, no credentials, session, or configuration change are required. The read primitive could escalate to a full server compromise: on a typical deployment by disclosing settings.json / credentials.json / /proc/self/environ, which contain the admin password, giving an attacker an admin session and, through the admin plugin installer, remote code execution.\n\n### Details\n\nEtherpad serves plugin static assets through src/node/utils/Minify.ts. The request path is first passed through the canonical sanitizer src/node/utils/sanitizePathname.ts, which is careful to convert backslashes to forward slashes only on Windows:\n\n```\n// src/node/utils/sanitizePathname.ts:11-20\np = pathApi.normalize(p);\nif (pathApi.isAbsolute(p)) throw new Error(`absolute paths are forbidden: ${p}`);\nif (p.split(pathApi.sep)[0] === '..') throw new Error(`directory traversal: ${p}`);\n// THIS CONVERSION MUST ONLY BE DONE ON WINDOWS, otherwise on POSIXish systems '..\\\\' in the input\n// pathname would not be normalized away before being converted to '../'.\nif (pathApi.sep === '\\\\') p = p.replace(/\\\\/g, '/');\n```\n\nOn Linux a backslash is an ordinary filename byte, so an input segment like ..\\..\\..\\test contains no ./.. path components and passes every check in sanitizePathname unchanged. The project's own test suite confirms this: src/tests/backend-new/specs/sanitizePathname.ts:62 lists ['posix', '..\\\\foo'] among the accepted paths (returned unchanged).\n\nThe vulnerability is that Minify.ts then performs that Windows‑only conversion unconditionally, after the sanitizer has run, justified by a comment asserting the opposite of the invariant above:\n\n```\n// src/node/utils/Minify.ts:171-186\nconst match = filename.match(/^plugins\\/([^/]+)(\\/(?:(static\\/.*)|.*))?$/);\nif (match) {\nconst library = match[1];\nconst libraryPath = match[2] || '';\nif (plugins.plugins[library] && match[3]) {\nconst plugin = plugins.plugins[library];\nconst pluginPath = plugin.package.realPath; // for 'ep_etherpad-lite' ==\n/src\nfilename = path.join(pluginPath, libraryPath); // -> absolute path, backslashes preserved\n// ... \"This conversion does not introduce a directory\n// traversal vulnerability because all '..\\\\' substrings have already been removed by\n// sanitizePathname.\" // <-- FALSE on POSIX\nfilename = filename.replace(/\\\\/g, '/'); // <-- reintroduces ../ AFTER the check\n}\n```\n\nAfter line 186 the string becomes a real traversal (\n/src/static/../../../../etc/passwd) with no re‑normalization and no containment check\nbefore the filesyst\n\nAffected: npm:ep_etherpad-lite\n\nFixed in: 3.3.3\n\nReferences:\nhttps://github.com/ether/etherpad/security/advisories/GHSA-mc8w-wjhw-45x5\nhttps://github.com/ether/etherpad/pull/8081\nhttps://github.com/ether/etherpad/commit/9c8d16d50e2fdfd9693ab35c43280410cb4db2fc\nhttps://github.com/ether/etherpad","url":"https://osv.dev/vulnerability/GHSA-mc8w-wjhw-45x5","published_at":"2026-11-20T00:23:45Z","updated_at":"2026-11-20T00:30:07.772051Z","fetched_at":"2026-11-21T19:15:55.946296Z","severity":"critical","cvss_score":9.8,"epss":0.01163,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"ep_etherpad-lite","vuln_id":"CVE-2026-114516","vuln_ids":["CVE-2026-114516","GHSA-MC8W-WJHW-45X5"],"tags":["osv","npm","fix-available"],"cluster_id":2060,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10927","html":"https://vulnwatch.ve1ve2.com/item/10927"}},{"id":2319,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-mc8w-wjhw-45x5 / CVE-2026-114516: Etherpad: Pre-auth arbitrary file read","summary":"Etherpad: Pre-auth arbitrary file read\n\n### Summary\n\nAn unauthenticated path‑traversal / arbitrary file read vulnerability in Etherpad's /static/* handler allows any remote, unauthenticated user to read any file on the server's filesystem (e.g. GET /static/plugins/ep_etherpad-lite/static/..%5C..%5C..%5C..%5C..%5C..%5C..%5Cetc/passwd returns /etc/passwd) available to the user running the etherpad software. Because the endpoint is mounted before the authentication middleware, no credentials, session, or configuration change are required. The read primitive could escalate to a full server compromise: on a typical deployment by disclosing settings.json / credentials.json / /proc/self/environ, which contain the admin password, giving an attacker an admin session and, through the admin plugin installer, remote code execution.\n\n### Details\n\nEtherpad serves plugin static assets through src/node/utils/Minify.ts. The request path is first passed through the canonical sanitizer src/node/utils/sanitizePathname.ts, which is careful to convert backslashes to forward slashes only on Windows:\n\n```\n// src/node/utils/sanitizePathname.ts:11-20\np = pathApi.normalize(p);\nif (pathApi.isAbsolute(p)) throw new Error(`absolute paths are forbidden: ${p}`);\nif (p.split(pathApi.sep)[0] === '..') throw new Error(`directory traversal: ${p}`);\n// THIS CONVERSION MUST ONLY BE DONE ON WINDOWS, otherwise on POSIXish systems '..\\\\' in the input\n// pathname would not be normalized away before being converted to '../'.\nif (pathApi.sep === '\\\\') p = p.replace(/\\\\/g, '/');\n```\n\nOn Linux a backslash is an ordinary filename byte, so an input segment like ..\\..\\..\\test contains no ./.. path components and passes every check in sanitizePathname unchanged. The project's own test suite confirms this: src/tests/backend-new/specs/sanitizePathname.ts:62 lists ['posix', '..\\\\foo'] among the accepted paths (returned unchanged).\n\nThe vulnerability is that Minify.ts then performs that Windows‑only conversion unconditionally, after the sanitizer has run, justified by a comment asserting the opposite of the invariant above:\n\n```\n// src/node/utils/Minify.ts:171-186\nconst match = filename.match(/^plugins\\/([^/]+)(\\/(?:(static\\/.*)|.*))?$/);\nif (match) {\nconst library = match[1];\nconst libraryPath = match[2] || '';\nif (plugins.plugins[library] && match[3]) {\nconst plugin = plugins.plugins[library];\nconst pluginPath = plugin.package.realPath; // for 'ep_etherpad-lite' ==\n/src\nfilename = path.join(pluginPath, libraryPath); // -> absolute path, backslashes preserved\n// ... \"This conversion does not introduce a directory\n// traversal vulnerability because all '..\\\\' substrings have already been removed by\n// sanitizePathname.\" // <-- FALSE on POSIX\nfilename = filename.replace(/\\\\/g, '/'); // <-- reintroduces ../ AFTER the check\n}\n```\n\nAfter line 186 the string becomes a real traversal (\n/src/static/../../../../etc/passwd) with no re‑normalization and no containment check\nbefore the filesyst\n\nAffected packages: npm:ep_etherpad-lite\nPatched: ep_etherpad-lite 3.3.3","url":"https://github.com/advisories/GHSA-mc8w-wjhw-45x5","published_at":"2026-11-20T00:23:45Z","updated_at":"2026-11-20T00:23:46Z","fetched_at":"2026-11-21T19:15:18.416747Z","severity":"critical","cvss_score":9.8,"epss":0.01163,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"ep_etherpad-lite","vuln_id":"CVE-2026-114516","vuln_ids":["CVE-2026-114516","GHSA-MC8W-WJHW-45X5"],"tags":["ghsa","npm","CWE-22","CWE-200","CWE-306"],"cluster_id":2060,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2319","html":"https://vulnwatch.ve1ve2.com/item/2319"}},{"id":9304,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-114516: Etherpad is a real-time collaborative editor. From 1.8.14 until 3.3.3, the pre-authentication /static/* plugin asset handler in src/node/utils/Minify.ts perfor…","summary":"Etherpad is a real-time collaborative editor. From 1.8.14 until 3.3.3, the pre-authentication /static/* plugin asset handler in src/node/utils/Minify.ts performs a backslash-to-forward-slash conversion after src/node/utils/sanitizePathname.ts has completed its POSIX path checks. On POSIX systems the sanitizer correctly treats backslashes as ordinary filename bytes, but the later conversion turns encoded backslash-separated parent-directory segments into traversal components without revalidation or containment. The expressPreSession registration and the always-present ep_etherpad-lite core pseudo-plugin make this path reachable without credentials, allowing a remote attacker to read any file available to the Etherpad process. Disclosed configuration or environment secrets can expose administrator credentials, after which the administrator plugin installer can provide in-process code execution and full server compromise. This issue is fixed in version 3.3.3.\n\nReferences:\nhttps://github.com/ether/etherpad/commit/9c8d16d50e2fdfd9693ab35c43280410cb4db2fc\nhttps://github.com/ether/etherpad/pull/8081\nhttps://github.com/ether/etherpad/security/advisories/GHSA-mc8w-wjhw-45x5\nhttps://github.com/ether/etherpad/security/advisories/GHSA-mc8w-wjhw-45x5","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114516","published_at":"2026-11-19T22:17:54.773000Z","updated_at":"2026-11-20T14:17:43.853000Z","fetched_at":"2026-11-21T19:15:31.484913Z","severity":"critical","cvss_score":9.8,"epss":0.01163,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-114516","vuln_ids":["CVE-2026-114516","GHSA-MC8W-WJHW-45X5"],"tags":["CWE-22","CWE-200","CWE-306"],"cluster_id":2061,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/9304","html":"https://vulnwatch.ve1ve2.com/item/9304"}}]}