CVE Explorer
CVE-2026-49982
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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-22","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:9d35f26cc2e58414529102e71d75057d1ee407a4b821d50af85a3e1b9329cff2 · sha256:6fa790a4035b12f3… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-20","description":"CWE-20: Improper Input Validation","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:9d35f26cc2e58414529102e71d75057d1ee407a4b821d50af85a3e1b9329cff2 · sha256:6fa790a4035b12f3… · /containers/cna/problemTypes/0/descriptions/0
Affected products and versions
1 source assertion{"product":"node-tmp","vendor":"raszi","versions":[{"status":"affected","version":"0.2.6"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:9d35f26cc2e58414529102e71d75057d1ee407a4b821d50af85a3e1b9329cff2 · sha256:6fa790a4035b12f3… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":8.2,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:9d35f26cc2e58414529102e71d75057d1ee407a4b821d50af85a3e1b9329cff2 · sha256:6fa790a4035b12f3… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"cweId":"CWE-22","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:9d35f26cc2e58414529102e71d75057d1ee407a4b821d50af85a3e1b9329cff2 · sha256:6fa790a4035b12f3… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-20","description":"CWE-20: Improper Input Validation","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:9d35f26cc2e58414529102e71d75057d1ee407a4b821d50af85a3e1b9329cff2 · sha256:6fa790a4035b12f3… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"tags":["exploit"],"url":"https://github.com/raszi/node-tmp/security/advisories/GHSA-7c78-jf6q-g5cm"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:9d35f26cc2e58414529102e71d75057d1ee407a4b821d50af85a3e1b9329cff2 · sha256:6fa790a4035b12f3… · /containers/adp/0/references/0
{"name":"https://github.com/raszi/node-tmp/security/advisories/GHSA-7c78-jf6q-g5cm","tags":["x_refsource_CONFIRM"],"url":"https://github.com/raszi/node-tmp/security/advisories/GHSA-7c78-jf6q-g5cm"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:9d35f26cc2e58414529102e71d75057d1ee407a4b821d50af85a3e1b9329cff2 · sha256:6fa790a4035b12f3… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.