Summary
It was discovered that tmp incorrectly handled symbolic links in the
directory it was given. A local attacker could possibly use this issue to
create temporary files or directories in arbitrary locations. This issue
only affected Ubuntu 22.04 LTS and Ubuntu 24.04 LTS. (CVE-2025-54798)
It was discovered that tmp did not properly validate the names used when
creating temporary files and directories. An attacker could possibly use
this issue to create files outside the intended temporary directory.
(CVE-2026-44705)
Fixed packages 6
| Release | Package | Fixed in |
|---|---|---|
| Ubuntu · Pro 16.04 LTS Pro:16.04:LTS | node-tmp | 0.0.28-1ubuntu0.1~esm1 |
| Ubuntu · Pro 18.04 LTS Pro:18.04:LTS | node-tmp | 0.0.31-1ubuntu0.1~esm1 |
| Ubuntu · Pro 20.04 LTS Pro:20.04:LTS | node-tmp | 0.1.0+dfsg-6ubuntu0.1~esm1 |
| Ubuntu · Pro 22.04 LTS Pro:22.04:LTS | node-tmp | 0.2.1+dfsg+~0.2.2-1ubuntu0.1~esm1 |
| Ubuntu · Pro 24.04 LTS Pro:24.04:LTS | node-tmp | 0.2.2+dfsg+~0.2.3-1ubuntu0.1~esm1 |
| Ubuntu · Pro 26.04 LTS Pro:26.04:LTS | node-tmp | 0.2.5+dfsg+~0.2.6-2ubuntu0.1~esm1 |
Vulnerabilities 2
-
High 7.7
tmp: Path Traversal via unsanitized prefix/postfix enables directory escape
tmp is a temporary file and directory creator for node.js. Prior to 0.2.6, the tmp npm package contains a path traversal vulnerability that allows escaping the intended temporary directory when untrusted data flows into the prefix, postfix, or dir options. By…
-
Low 2.5
tmp does not restrict 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.