ep_etherpad-lite: Import/export uses Math.random() for temp file paths; predictable paths on shared /tmp enable symlink-based file overwrite (CVE-2026-55086)
Etherpad-lite versions prior to 3.1.0 use Math.random() to generate temporary filenames for import/export operations in a shared temporary directory. This allows a local unprivileged attacker to predict these filenames and create symbolic links that cause the Etherpad process to overwrite arbitrary files with attacker-controlled content. The vulnerability is fixed in version 3.1.0.
AI Analysis
Technical Summary
In Etherpad-lite before version 3.1.0, the ImportHandler and ExportHandler generate temporary file paths using Math.random() placed in the system temporary directory (os.tmpdir()). On systems where the temporary directory is shared and world-writable, an attacker with local access can predict these filenames and create symbolic links pointing to files writable by the Etherpad process. When Etherpad writes to these temporary files during import or export, it follows the symbolic links and overwrites the target files with partially attacker-controlled data. This symlink-based file overwrite vulnerability is addressed in version 3.1.0.
Potential Impact
A local unprivileged attacker can cause Etherpad-lite to overwrite arbitrary files accessible by the Etherpad process by exploiting predictable temporary filenames and symbolic link creation. This can lead to partial integrity compromise of files. The CVSS score is 4.2 (medium severity), reflecting limited attack vector (local), high attack complexity, and partial impact on confidentiality and integrity without availability impact.
Mitigation Recommendations
Upgrade Etherpad-lite to version 3.1.0 or later, where this vulnerability is fixed. The fix removes the use of predictable Math.random() for temporary filenames, preventing symlink-based overwrites. No other mitigation is required if the upgrade is applied.
ep_etherpad-lite: Import/export uses Math.random() for temp file paths; predictable paths on shared /tmp enable symlink-based file overwrite (CVE-2026-55086)
Description
Etherpad-lite versions prior to 3.1.0 use Math.random() to generate temporary filenames for import/export operations in a shared temporary directory. This allows a local unprivileged attacker to predict these filenames and create symbolic links that cause the Etherpad process to overwrite arbitrary files with attacker-controlled content. The vulnerability is fixed in version 3.1.0.
CVSS v3.1
Score 4.2medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
In Etherpad-lite before version 3.1.0, the ImportHandler and ExportHandler generate temporary file paths using Math.random() placed in the system temporary directory (os.tmpdir()). On systems where the temporary directory is shared and world-writable, an attacker with local access can predict these filenames and create symbolic links pointing to files writable by the Etherpad process. When Etherpad writes to these temporary files during import or export, it follows the symbolic links and overwrites the target files with partially attacker-controlled data. This symlink-based file overwrite vulnerability is addressed in version 3.1.0.
Potential Impact
A local unprivileged attacker can cause Etherpad-lite to overwrite arbitrary files accessible by the Etherpad process by exploiting predictable temporary filenames and symbolic link creation. This can lead to partial integrity compromise of files. The CVSS score is 4.2 (medium severity), reflecting limited attack vector (local), high attack complexity, and partial impact on confidentiality and integrity without availability impact.
Mitigation Recommendations
Upgrade Etherpad-lite to version 3.1.0 or later, where this vulnerability is fixed. The fix removes the use of predictable Math.random() for temporary filenames, preventing symlink-based overwrites. No other mitigation is required if the upgrade is applied.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-2jwf-f4xq-f24h
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-55086"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a7e0370bf8831d5398f9583
Added to database: 08/13/2026, 17:48:32 UTC
Last enriched: 09/13/2026, 13:02:18 UTC
Last updated: 09/27/2026, 13:47:46 UTC
Views: 70
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.