CVE-2026-44705
CVE-2026-44705 · tmp: Path Traversal via unsanitized prefix/postfix enables directory escape
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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 embedding traversal sequences (e.g., ../) or path separators in these parameters, attackers can cause files to be created outside the configured temporary base directory at attacker-controlled locations with the privileges of the running process. This vulnerability affects applications that pass user-controlled data to tmp's file/directory creation functions without proper input sanitization. This vulnerability is fixed in 0.2.6.
CVSS 7.7 · High · EPSS 0.4% · Fix available
- Published
- Updated
Affected products and versions
node-tmp
- Versions
- < 0.2.6: Affected
No fix published
node-tmp Debian:12
- Versions
- 0.2.2+dfsg+~0.2.3-1
- 0.2.2+dfsg+~0.2.3-1.1
- 0.2.2+dfsg+~0.2.3-1.1~deb12u1
- 0.2.2+dfsg+~0.2.3-1.1~deb13u1
- 0.2.5+dfsg+~0.2.6-1
- 0.2.5+dfsg+~0.2.6-2
- 0.2.7+dfsg+~0.2.6-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-tmp Debian:13
- Versions
- 0.2.2+dfsg+~0.2.3-1
- 0.2.2+dfsg+~0.2.3-1.1
- 0.2.2+dfsg+~0.2.3-1.1~deb12u1
- 0.2.2+dfsg+~0.2.3-1.1~deb13u1
- 0.2.5+dfsg+~0.2.6-1
- 0.2.5+dfsg+~0.2.6-2
- 0.2.7+dfsg+~0.2.6-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-tmp Debian:14
- Versions
- 0.2.2+dfsg+~0.2.3-1
- 0.2.2+dfsg+~0.2.3-1.1
- 0.2.2+dfsg+~0.2.3-1.1~deb12u1
- 0.2.2+dfsg+~0.2.3-1.1~deb13u1
- 0.2.5+dfsg+~0.2.6-1
- 0.2.5+dfsg+~0.2.6-2
- Affected ranges
- ECOSYSTEM: < 0.2.7+dfsg+~0.2.6-1
Update to 0.2.7+dfsg+~0.2.6-1
tmp npm
- Affected ranges
- SEMVER: < 0.2.6
Update to 0.2.6
node-tmp Ubuntu:16.04:LTS
- Versions
- 0.0.25-1
- 0.0.28-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-tmp Ubuntu:18.04:LTS
- Versions
- 0.0.31-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-tmp Ubuntu:20.04:LTS
- Versions
- 0.0.33+dfsg-2
- 0.1.0+dfsg-2
- 0.1.0+dfsg-3
- 0.1.0+dfsg-6
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-tmp Ubuntu:22.04:LTS
- Versions
- 0.2.1+dfsg-1
- 0.2.1+dfsg-2
- 0.2.1+dfsg+~0.2.2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-tmp Ubuntu:24.04:LTS
- Versions
- 0.2.2+dfsg+~0.2.3-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-tmp Ubuntu:25.10
- Versions
- 0.2.2+dfsg+~0.2.3-1
- 0.2.2+dfsg+~0.2.3-1.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-tmp Ubuntu:26.10
- Versions
- 0.2.5+dfsg+~0.2.6-2
- 0.2.7+dfsg+~0.2.6-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-tmp Ubuntu:26.04:LTS
- Versions
- 0.2.2+dfsg+~0.2.3-1.1
- 0.2.5+dfsg+~0.2.6-1
- 0.2.5+dfsg+~0.2.6-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published