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

EcosystemPackageFixed inAdvisory
Debian:12node-tmp0.2.2+dfsg+~0.2.3-1.1~deb12u1DEBIAN-CVE-2025-54798
Debian:13node-tmp0.2.2+dfsg+~0.2.3-1.1~deb13u1DEBIAN-CVE-2025-54798
Debian:14node-tmp0.2.2+dfsg+~0.2.3-1.1DEBIAN-CVE-2025-54798
Ubuntu:22.04:LTSnode-tmpno fix listedUBUNTU-CVE-2025-54798
Ubuntu:24.04:LTSnode-tmpno fix listedUBUNTU-CVE-2025-54798
Ubuntu:25.10node-tmpno fix listedUBUNTU-CVE-2025-54798
Ubuntu:26.04:LTSnode-tmpno fix listedUBUNTU-CVE-2025-54798
Ubuntu:26.10node-tmpno fix listedUBUNTU-CVE-2025-54798
npmtmp0.2.4GHSA-52f5-9888-hmc6

Affected products (as reported)

VendorProductVersions
raszi node-tmp < 0.2.4

Weakness: CWE-59 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N

References