{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-49982","published":"2026-06-11T17:16:35.227000Z","last_modified":"2026-10-26T11:10:00.157000Z","status":"Analyzed","cvss":{"version":"3.1","score":8.2,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-20","CWE-22"],"cpes":[{"criteria":"cpe:2.3:a:raszi:tmp:0.2.6:*:*:*:*:node.js:*:*","part":"a","vendor":"raszi","product":"tmp","version":"0.2.6"}],"cpes_truncated":false,"vendors":["raszi"],"products":["raszi/tmp"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-7c78-jf6q-g5cm","ecosystem":"npm","name":"tmp","purl":"pkg:npm/tmp","ranges":[{"introduced":"0.2.6","fixed":"0.2.7"}],"versions":[],"versions_truncated":false}],"severity":"high","priority_score":64,"links":{"html_es":"/es/cve/CVE-2026-49982/","html_en":"/en/cve/CVE-2026-49982/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-49982","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-49982"},"untrusted":{"vendor_name":"Raszi","product_name":"Tmp","desc_en":"tmp is a temporary file and directory creator for node.js. In version 0.2.6, the _assertPath guard added to tmp rejects only string values that contain the substring ... It is bypassed when prefix, postfix, or template is supplied as a non-string value (Array, Buffer, or any object) whose includes('..') returns falsy but whose stringification still contains ../. The value flows through Array.prototype.join/String coercion inside _generateTmpName and path.join(tmpDir, opts.dir, name), producing a final path that escapes tmpdir and creates a file or directory at an attacker-controlled location with the host process's privileges. This affects any application that forwards untrusted request data (a common pattern is JSON body fields or qs-parsed bracket-array query strings such as ?prefix[]=...) into tmp.file, tmp.fileSync, tmp.dir, tmp.dirSync, tmp.tmpName, or tmp.tmpNameSync without explicit type coercion. This vulnerability is fixed in 0.2.7.","affected":[{"untrusted_vendor":"raszi","untrusted_product":"node-tmp","versions":[]}],"references":[{"url":"https://github.com/raszi/node-tmp/security/advisories/GHSA-7c78-jf6q-g5cm","tags":["Exploit","Mitigation","Vendor Advisory"]}]}}