{"id":"GHSA-92hr-gmr6-h8cp","aliases":[],"status":"published","title":"Etherpad addressed weak token RNG, login timing, plugin path handling, API request handling","description":"Fix: PR #7906 (ether/etherpad). A set of medium/low hardening fixes:\n\n- **Weak RNG for tokens (CWE-330):** author/session/readonly IDs were generated with `Math.random()` (client and server). Now use `crypto.getRandomValues`.\n- **Login timing / no failure delay (CWE-208/CWE-307):** the OIDC interaction login used a non-constant-time password compare with no failure delay. Now uses `crypto.timingSafeEqual` plus a uniform failure delay; user lookup is own-property only.\n- **Plugin dependency path handling (CWE-22):** plugin dependency names from package.json were used to build filesystem paths without validation (admin-gated install). Now validated against the npm name grammar.\n- **API parameter pollution (CWE-235):** `/api/2` merged all request headers into the API field set. Now forwards only `authorization`, matching the openapi.ts handler.\n- **Pad-creation side effect:** `API.appendChatMessage` could create arbitrary pads (missing `getPadSafe`). Now requires the pad to exist.\n- **Error info disclosure (CWE-209):** the admin file server echoed filesystem error detail; now returns a generic message.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-208","CWE-209","CWE-22","CWE-235","CWE-330"],"published":"2026-08-17T17:49:21Z","modified":"2026-08-17T18:00:08Z","fixes":[{"ecosystem":"npm","package":"ep_etherpad-lite","fixed_in":["3.3.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"ep_etherpad-lite","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.8.14"},{"fixed":"3.3.0"}]}]},{"source":"osv","ecosystem":"npm","package":"ep_etherpad-lite","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.3.0"}]}]}],"references":[{"url":"https://github.com/ether/etherpad/security/advisories/GHSA-92hr-gmr6-h8cp","tags":["web"]},{"url":"https://github.com/ether/etherpad/pull/7906","tags":["web"]},{"url":"https://github.com/ether/etherpad/commit/7ea99706483443239bbbc0f2df9aff8ab5de4805","tags":["web"]},{"url":"https://github.com/ether/etherpad/releases/tag/3.3.0","tags":["web"]},{"url":"https://github.com/advisories/GHSA-92hr-gmr6-h8cp"},{"url":"https://github.com/ether/etherpad","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-92hr-gmr6-h8cp","title":"Etherpad addressed weak token RNG, login timing, plugin path handling, API request handling","description":"Fix: PR #7906 (ether/etherpad). A set of medium/low hardening fixes:\n\n- **Weak RNG for tokens (CWE-330):** author/session/readonly IDs were generated with `Math.random()` (client and server). Now use `crypto.getRandomValues`.\n- **Login timing / no failure delay (CWE-208/CWE-307):** the OIDC interaction login used a non-constant-time password compare with no failure delay. Now uses `crypto.timingSafeEqual` plus a uniform failure delay; user lookup is own-property only.\n- **Plugin dependency path handling (CWE-22):** plugin dependency names from package.json were used to build filesystem paths without validation (admin-gated install). Now validated against the npm name grammar.\n- **API parameter pollution (CWE-235):** `/api/2` merged all request headers into the API field set. Now forwards only `authorization`, matching the openapi.ts handler.\n- **Pad-creation side effect:** `API.appendChatMessage` could create arbitrary pads (missing `getPadSafe`). Now requires the pad to exist.\n- **Error info disclosure (CWE-209):** the admin file server echoed filesystem error detail; now returns a generic message.","status":"published","published":"2026-08-17T17:49:21Z","modified":"2026-08-17T17:49:22Z","cwes":["CWE-22","CWE-208","CWE-209","CWE-235","CWE-330"],"updated_at":"2026-11-02T14:41:01.23108Z"}],"osv":[{"id":"GHSA-92hr-gmr6-h8cp","title":"Etherpad addressed weak token RNG, login timing, plugin path handling, API request handling","description":"Fix: PR #7906 (ether/etherpad). A set of medium/low hardening fixes:\n\n- **Weak RNG for tokens (CWE-330):** author/session/readonly IDs were generated with `Math.random()` (client and server). Now use `crypto.getRandomValues`.\n- **Login timing / no failure delay (CWE-208/CWE-307):** the OIDC interaction login used a non-constant-time password compare with no failure delay. Now uses `crypto.timingSafeEqual` plus a uniform failure delay; user lookup is own-property only.\n- **Plugin dependency path handling (CWE-22):** plugin dependency names from package.json were used to build filesystem paths without validation (admin-gated install). Now validated against the npm name grammar.\n- **API parameter pollution (CWE-235):** `/api/2` merged all request headers into the API field set. Now forwards only `authorization`, matching the openapi.ts handler.\n- **Pad-creation side effect:** `API.appendChatMessage` could create arbitrary pads (missing `getPadSafe`). Now requires the pad to exist.\n- **Error info disclosure (CWE-209):** the admin file server echoed filesystem error detail; now returns a generic message.","status":"published","published":"2026-08-17T17:49:21Z","modified":"2026-08-17T18:00:08.803301424Z","cwes":["CWE-208","CWE-209","CWE-22","CWE-235","CWE-330"],"updated_at":"2026-11-02T15:46:43.123867Z"}]}}
