# tmp (npm) vulnerabilities

3 known vulnerabilities (2 high, 1 low), with the versions each affects and the releases that fix them.

## At a glance

- Latest release: 0.2.7 (May 27, 2026): no advisory affects it
- Newest unaffected release: 0.2.7 (May 27, 2026), the latest release
- Weekly downloads: 111.3M
- Dependents: 32.4K
- Releases: 40 since 0.0.1 (Sep 2, 2011)
- Registry: https://www.npmjs.com/package/tmp
- Releases read: Nov 8, 2026

## Version timeline

Affected versions per advisory, in version order:

- CVE-2026-49982: 0.2.6 (0.2.7 is outside it)
- CVE-2026-44705: 0.0.1 to 0.2.5 (0.2.6 is outside it)
- CVE-2025-54798: 0.0.1 to 0.2.3 (0.2.4 is outside it)

## Advisories (3)

### [CVE-2026-49982](https://cve.now/CVE-2026-49982): tmp: Type-confusion bypass of \_assertPath in tmp@0.2.6 allows path traversal via non-string prefix/postfix/template

- Severity: High 8.2
- Published: Jun 11, 2026
- Affected: from 0.2.6, fixed in 0.2.7.
- Fixed in 0.2.7 (released May 27, 2026, 15 days before disclosure).
- The latest release, 0.2.7, is not affected.
- 0.6% of tmp downloads last week were affected versions (833.7K).

### [CVE-2026-44705](https://cve.now/CVE-2026-44705): tmp: Path Traversal via unsanitized prefix/postfix enables directory escape

- Severity: High 7.7
- Published: Jun 11, 2026
- Affected: fixed in 0.2.6.
- Fixed in 0.2.6 (released May 26, 2026, 16 days before disclosure).
- The latest release, 0.2.7, is not affected.
- 51% of tmp downloads last week were affected versions (65.7M).

### [CVE-2025-54798](https://cve.now/CVE-2025-54798): tmp does not restrict arbitrary temporary file / directory write via symbolic link \`dir\` parameter

- Severity: Low 2.5
- Published: Aug 7, 2025
- Affected: fixed in 0.2.4.
- Fixed in 0.2.4 (released Aug 6, 2025, 1 day before disclosure).
- The latest release, 0.2.7, is not affected.
- 37% of tmp downloads last week were affected versions (47.9M).

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/packages/npm/tmp
Site guide for agents: https://cve.now/llms.txt
Uses NVD data; not endorsed by NVD.
