What’s Vulnerable › Vulnerabilities
CVE-2025-54798: tmp does not restrict arbitrary temporary file / directory write via symbolic link `dir` parameter
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2025-08-07 · updated 2026-06-17
- Weakness: CWE-59
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.
Affected products
- raszi node-tmp: before 0.2.4 — fixed in 0.2.4
- Npm Tmp: before 0.2.4 — fixed in 0.2.4
How to fix
Upgrade to a fixed version: raszi node-tmp 0.2.4; Npm Tmp 0.2.4. Check the vendor advisory for mitigations.
References
- https://github.com/raszi/node-tmp/commit/188b25e529496e37adaf1a1d9dccb40019a08b1b
- https://github.com/raszi/node-tmp/issues/207
- https://github.com/raszi/node-tmp/security/advisories/GHSA-52f5-9888-hmc6
- https://lists.debian.org/debian-lts-announce/2025/08/msg00007.html
- https://github.com/raszi/node-tmp/security/advisories/GHSA-52f5-9888-hmc6
Get alerted when CVE-2025-54798 or the next vulnerability affects your stack