CVE-2025-54798
MEDIUM 5.3CVSS 3.1tmp allows arbitrary temporary file / directory write via symbolic link `dir` parameter
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.
- Published
- 7 Aug 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-59
- Also known as
- GHSA-52f5-9888-hmc6
- Sources
- NVDJSONOSV GHSA-52f5-9888-hmc6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 2.5 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 2.5 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | raszi | tmpcpe:2.3:a:raszi:tmp:*:*:*:*:*:node.js:*:* |
< 0.2.4 | 0.2.4 |
| OSV | npm | tmp | < 0.2.4 | 0.2.4 |
References
- https://github.com/raszi/node-tmp/commit/188b25e529496e37adaf1a1d9dccb40019a08b1b · Patch, WEB
- https://github.com/raszi/node-tmp/issues/207 · Issue Tracking, Patch, WEB
- https://github.com/raszi/node-tmp/security/advisories/GHSA-52f5-9888-hmc6 · Exploit, Vendor Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2025/08/msg00007.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-54798 · ADVISORY
- https://github.com/raszi/node-tmp · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 7 Aug 2025)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 6 Aug 2025)