Description
src/node/handler/ImportHandler.ts and src/node/handler/ExportHandler.ts both compute their temporary working-file paths as:
Two flaws compound:
Math.random()is not crypto-secure. It yields at most ~32 bits of entropy and is predictable across calls within the same Node process (V8 shares PRNG state between consecutiveMath.random()invocations).
Recommendation
Update the ep_etherpad-lite package to the latest compatible version. Followings are version details:
- Affected version(s): <= 3.0.0
- Patched version(s): 3.1.0
References
Could your website be exposed too?
SmartScanner can check your website for ep_etherpad-lite: Import/export uses Math.random() for temp file paths; predictable paths on shared /tmp enable symlink- and gives you actionable findings to investigate.
Start a free scanRelated Issues
- ep_etherpad-lite: Cache-poisoning Cross-site Scripting and Open Redirect via x-proxy-path Header - CVE-2026-55087
- ep_etherpad-lite: Device-to-device author-token transfer endpoint is replayable, never expires, and exposes the cleartex - CVE-2026-55088
- Etherpad has stored XSS in HTML export via unescaped attribute-pool values - CVE-2026-55090
- Etherpad Lite Access Restriction Bypass - CVE-2018-6835


