CVE-2026-44705: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in raszi node-tmp
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.
AI Analysis
Technical Summary
CVE-2026-44705 is a path traversal vulnerability (CWE-22) in the node-tmp package before version 0.2.6. The vulnerability arises when untrusted input is passed to the prefix, postfix, or dir options of tmp's file or directory creation functions without proper sanitization. Attackers can embed path traversal sequences such as '../' to cause files to be created outside the intended temporary directory, potentially at attacker-controlled locations, with the privileges of the process using node-tmp. This can lead to unauthorized file creation or modification. The issue is resolved in version 0.2.6.
Potential Impact
An attacker who can supply untrusted input to the tmp package's file or directory creation functions can create files outside the intended temporary directory. This may allow overwriting or creating files in arbitrary locations accessible by the process, potentially leading to privilege escalation or persistent compromise depending on the context in which node-tmp is used. The vulnerability does not require user interaction or privileges to exploit and has a high CVSS 4.0 base score of 7.7.
Mitigation Recommendations
Upgrade node-tmp to version 0.2.6 or later, where this path traversal vulnerability is fixed. Applications should avoid passing untrusted or unsanitized data to the prefix, postfix, or dir options of tmp's file and directory creation functions. Patch status is not explicitly stated in the vendor advisory, but the fix is included in version 0.2.6 as per the description.
CVE-2026-44705: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in raszi node-tmp
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.
CVSS v4.0
Score 7.7high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-44705 is a path traversal vulnerability (CWE-22) in the node-tmp package before version 0.2.6. The vulnerability arises when untrusted input is passed to the prefix, postfix, or dir options of tmp's file or directory creation functions without proper sanitization. Attackers can embed path traversal sequences such as '../' to cause files to be created outside the intended temporary directory, potentially at attacker-controlled locations, with the privileges of the process using node-tmp. This can lead to unauthorized file creation or modification. The issue is resolved in version 0.2.6.
Potential Impact
An attacker who can supply untrusted input to the tmp package's file or directory creation functions can create files outside the intended temporary directory. This may allow overwriting or creating files in arbitrary locations accessible by the process, potentially leading to privilege escalation or persistent compromise depending on the context in which node-tmp is used. The vulnerability does not require user interaction or privileges to exploit and has a high CVSS 4.0 base score of 7.7.
Mitigation Recommendations
Upgrade node-tmp to version 0.2.6 or later, where this path traversal vulnerability is fixed. Applications should avoid passing untrusted or unsanitized data to the prefix, postfix, or dir options of tmp's file and directory creation functions. Patch status is not explicitly stated in the vendor advisory, but the fix is included in version 0.2.6 as per the description.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-07T17:07:09.317Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a2ae619815e7002b80ac455
Added to database: 06/11/2026, 16:45:13 UTC
Last enriched: 06/18/2026, 17:56:16 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 98
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.