GHSA-7c78-jf6q-g5cm · Severity: high · Ecosystem: npm — tmp: Type-confusion bypass of _assertPath allows path traversal via non-string prefix/postfix/template
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.
Conclusion & alert: CVE-2026-49982 is rated High Exploit Risk (60.6/100): CVSS High severity, with low exploitation likelihood (EPSS 0.45%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.05% | 0.45% | +0.40% |
| 2 | 2026-06-12 | — | 0.05% | — |
Full EPSS history (2 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.2 | 3.1 | HIGH |
|
3.9 | 4.2 | [email protected] |
GHSA-7c78-jf6q-g5cm · Severity: high · Ecosystem: npm — tmp: Type-confusion bypass of _assertPath allows path traversal via non-string prefix/postfix/template
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
unimportant | CVE-2026-49982 unimportant priority: Debian including 1 source packages (node-tmp), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2026-49982 |
suse
|
medium | CVE-2026-49982 severity moderate: SUSE including 61 source package names (cockpit, cockpit-bridge, …), 276 product×package rows across 29 product lines (SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS, … (29 product lines)): Known Not Affected 276. | https://www.suse.com/security/cve/CVE-2026-49982/ |
| URL | Tags |
|---|---|
| https://github.com/raszi/node-tmp/security/advisories/GHSA-7c78-jf6q-g5cm | Exploit Mitigation Vendor Advisory |