Vulnerability · Published Aug 7, 2025 · Assigned by GitHub_M
CVE-2025-54798tmp does not restrict arbitrary temporary file / directory write via symbolic link `dir` parameter
Low 2.5
In plain English
A low-severity security flaw in node-tmp from raszi. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 32% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)2.5Low
Exploit odds (30 days)0.4%top 68.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-tmp | 0.2.2+dfsg+~0.2.3-1.1~deb12u1 | DEBIAN-CVE-2025-54798 |
| Debian:13 | node-tmp | 0.2.2+dfsg+~0.2.3-1.1~deb13u1 | DEBIAN-CVE-2025-54798 |
| Debian:14 | node-tmp | 0.2.2+dfsg+~0.2.3-1.1 | DEBIAN-CVE-2025-54798 |
| Ubuntu:22.04:LTS | node-tmp | no fix listed | UBUNTU-CVE-2025-54798 |
| Ubuntu:24.04:LTS | node-tmp | no fix listed | UBUNTU-CVE-2025-54798 |
| Ubuntu:25.10 | node-tmp | no fix listed | UBUNTU-CVE-2025-54798 |
| Ubuntu:26.04:LTS | node-tmp | no fix listed | UBUNTU-CVE-2025-54798 |
| Ubuntu:26.10 | node-tmp | no fix listed | UBUNTU-CVE-2025-54798 |
| npm | tmp | 0.2.4 | GHSA-52f5-9888-hmc6 |
Affected products (as reported)
Weakness: CWE-59 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
References
- https://github.com/raszi/node-tmp/security/advisories/GHSA-52f5-9888-hmc6 x_refsource_CONFIRM
- https://github.com/raszi/node-tmp/issues/207 x_refsource_MISC
- https://github.com/raszi/node-tmp/commit/188b25e529496e37adaf1a1d9dccb40019a08b1b x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2025/08/msg00007.html