# CVE-2026-44705: tmp: Path Traversal via unsanitized prefix/postfix enables directory escape

- Severity: High 7.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-27T00:34:06.000Z
- Modified: 2026-10-26T11:10:00.157Z
- Also known as: GHSA-ph9p-34f9-6g65
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- raszi node-tmp: < 0.2.6
- tmp (npm): before 0.2.6
- raszi tmp: before 0.2.6

## Every score

- GitHub_M: CVSS:4.0 7.7 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L`

## References

- <https://github.com/raszi/node-tmp/security/advisories/GHSA-ph9p-34f9-6g65> (exploit, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-44705> (advisory)
- <https://github.com/raszi/node-tmp/commit/efa4a06f24374797ae32ab2b6ae39b7a611ae429> (web)
- <https://github.com/raszi/node-tmp> (package)

## Sources

- CVE List: [CVE-2026-44705](https://www.cve.org/CVERecord?id=CVE-2026-44705), CVE Terms of Use, modified 2026-06-13
- GitHub Advisory Database: [GHSA-ph9p-34f9-6g65](https://github.com/advisories/GHSA-ph9p-34f9-6g65), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-44705](https://nvd.nist.gov/vuln/detail/CVE-2026-44705), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-44705 · Whole record: https://cve.day/CVE-2026-44705.json · Rebuilt by cve.day 2026-11-25T22:59:24.447Z
