Vulnerability library
Security checkAugust 13, 2026

ep_etherpad-lite: Import/export uses Math.random() for temp file paths; predictable paths on shared /tmp enable symlink-

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmep_etherpad-lite

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

src/node/handler/ImportHandler.ts and src/node/handler/ExportHandler.ts both compute their temporary working-file paths as:

Two flaws compound:

  1. 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 consecutive Math.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 scan

Related Issues

See something that needs correcting? Let us knowUpdated August 13, 2026