CVE-2025-54798 tmp does not restrict arbitrary temporary file / directory write via symbolic link `dir` parameter
Attackers can write arbitrary files or directories via symbolic link manipulation in the tmp library, potentially leading to code execution or data modification.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-54798?
CVE-2025-54798 is a low-severity path traversal vulnerability in raszi node-tmp, published on 7 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
tmp is a temporary file and directory creator for node.js. In versions 0.2.3 and below, tmp is vulnerable to an arbitrary temporary file / directory write via symbolic link dir parameter. This is fixed in version 0.2.4.
Weakness: CWE-59
Which versions are affected by CVE-2025-54798?
2 open source packages ship an affected version, including tmp. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
tmp npm | All versions | 0.2.4 |
tmp npm | All versions | 0.2.4 |
Linux distribution packages (2)
python-bqplot openSUSE:Tumbleweed | All versions | 0.12.45-13.1 |
python-nbdime openSUSE:Tumbleweed | All versions | 4.0.2-23.1 |
Products include Raszi Tmp.
How do I fix CVE-2025-54798?
Upgrade tmp to 0.2.4 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2025-54798 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-54798 exists.
Other vulnerabilities in raszi node-tmp
Sources
Also known as CLSA-2026-1775003179, CLSA-2026-1775003184, CLSA-2026-1775003185, CLSA-2026-1775608295, CLSA-2026-1776818190, CLSA-2026-1782694760 and 21 more.