{"id":"CVE-2026-44705","published":"2026-06-11T15:42:46Z","modified":"2026-06-13T02:20:44Z","title":"tmp: Path Traversal via unsanitized prefix/postfix enables directory escape","vendor":"raszi","product":"node-tmp","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00434,"percentile":0.38549,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/raszi/node-tmp/security/advisories/GHSA-ph9p-34f9-6g65","tags":["x_refsource_CONFIRM"]}],"priority":{"score":13.1,"factors":[{"name":"EPSS percentile","points":7.71},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"raszi","affectedVersions":[{"vendor":"raszi","product":"node-tmp","versions":["< 0.2.6"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-06-13T02:18:03.998417Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"tmp","vulnerableRanges":["<0.2.6"],"patched":["0.2.6"],"from":["GHSA-ph9p-34f9-6g65"],"provenance":"source"}],"summary":{"text":"The tmp package for node.js (raszi's node-tmp) contains a path traversal flaw in how its prefix, postfix, and dir options are handled, which allows temporary files and directories to be created outside the intended temporary base directory. An attacker who can influence those options with untrusted input, such as by injecting traversal sequences or path separators into an application that passes user-controlled data to tmp without sanitization, can write files to arbitrary locations with the privileges of the running process, and this requires no authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:06Z"},"euvd":{"id":"EUVD-2026-36264","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-raszi-node-tmp-cve-2025-54798","parents":[{"from":"CVE-2025-54798","to":"CVE-2026-44705","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:tmp","fromFixed":"0.2.4","toFixed":"0.2.6","daysApart":308},{"kind":"same-code","provenance":"machine","files":["lib/tmp.js"],"commits":["https://github.com/raszi/node-tmp/commit/188b25e529496e37adaf1a1d9dccb40019a08b1b","https://github.com/raszi/node-tmp/commit/efa4a06f24374797ae32ab2b6ae39b7a611ae429"],"basis":"shared function","functions":["_generateTmpName"]}]}],"packageHistory":[{"cve":"CVE-2025-54798","published":"2025-08-07","fixed":"0.2.4","kev":false},{"cve":"CVE-2026-44705","published":"2026-06-11","fixed":"0.2.6","kev":false},{"cve":"CVE-2026-49982","published":"2026-06-11","fixed":"0.2.7","kev":false,"link":{"from":"CVE-2026-44705","to":"CVE-2026-49982","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:tmp","fromFixed":"0.2.6","toFixed":"0.2.7","daysApart":0},{"kind":"similar","provenance":"machine","score":0.35,"basis":"same product + CWE + description similarity"}]}}],"package":"npm:tmp"}}