What’s Vulnerable › Vulnerabilities

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

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

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

Get alerted when CVE-2025-54798 or the next vulnerability affects your stack