{"id":"CVE-2025-54798","published":"2025-08-07T00:04:35Z","modified":"2025-11-03T20:06:39Z","title":"tmp does not restrict arbitrary temporary file / directory write via symbolic link `dir` parameter","vendor":"raszi","product":"node-tmp","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.5,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00513,"percentile":0.37027,"provenance":"source"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://github.com/raszi/node-tmp/security/advisories/GHSA-52f5-9888-hmc6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/raszi/node-tmp/issues/207","tags":["x_refsource_MISC"]},{"url":"https://github.com/raszi/node-tmp/commit/188b25e529496e37adaf1a1d9dccb40019a08b1b","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/08/msg00007.html","tags":[]}],"priority":{"score":9.2,"factors":[{"name":"EPSS percentile","points":7.41},{"name":"CVSS severity","points":1.75}]},"vendorSlug":"raszi","affectedVersions":[{"vendor":"raszi","product":"node-tmp","versions":["< 0.2.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-08-07T14:04:19.811342Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"tmp","vulnerableRanges":["<0.2.4"],"patched":["0.2.4"],"from":["GHSA-52f5-9888-hmc6"],"provenance":"source"}],"summary":{"text":"The flaw is in the tmp module of node-tmp, a temporary file and directory creator for Node.js, where the dir parameter does not restrict arbitrary temporary file or directory writes and can be abused through a symbolic link (improper link resolution before file access). An attacker with local access and low privileges, who must also overcome a high-complexity condition, can cause writes to arbitrary locations, with the impact limited to integrity loss, and no user interaction is required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:16:34Z"},"euvd":{"id":"EUVD-2025-23895","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-raszi-node-tmp-cve-2025-54798","children":[{"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}],"package":"npm:tmp"}}