# tmp (npm)

Temporary file and directory creator

- Latest: 0.2.7 (2026-05-27)
- Licence: MIT
- Downloads: 488863535 last month
- Advisories on the latest version: 0

- CVE-2026-49982 HIGH: tmp: Type-confusion bypass of _assertPath allows path traversal via non-string prefix/postfix/template Fixed in 0.2.7.
- CVE-2026-44705 HIGH: tmp has Path Traversal via unsanitized prefix/postfix that enables directory escape Fixed in 0.2.6.
- CVE-2025-54798 LOW: tmp allows arbitrary temporary file / directory write via symbolic link `dir` parameter Fixed in 0.2.4.

Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.
