CVE-2026-44705 Details
Description
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.
A path traversal vulnerability has been identified in the tmp npm package for Node.js, affecting all versions prior to 0.2.6. The vulnerability allows escaping the intended temporary directory when untrusted data is passed into the prefix, postfix, or dir options. By embedding traversal sequences or path separators, attackers can create files outside the designated temporary base directory, at locations controlled by the attacker, using the privileges of the running process. This issue arises in applications that do not properly sanitize user-controlled data before using tmp's file or directory creation functions.
To address this vulnerability, it is recommended to sanitize and validate user input before passing it to the tmp package. This can be done by removing path separators and traversal sequences from the prefix and postfix options, and by rejecting absolute paths or directories that escape the intended base directory. Additionally, implementing post-construction validation of the final file path can help ensure that it remains within the designated temporary directory.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/raszi/node-tmp/security/advisories/GHSA-ph9p-34f9-6g65 | CISA-ADP | ExploitMitigationVendor Advisory |
| https://github.com/raszi/node-tmp/security/advisories/GHSA-ph9p-34f9-6g65 | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| raszi tmp | < 0.2.6 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 15, 2026 | Initial Analysis | [email protected] |
| Jun 13, 2026 | CVE Modified | CISA-ADP |
| Jun 11, 2026 | New CVE Received | [email protected] |