p PatchFirst

PatchFirst · Latest vulnerabilities

node-tmp vulnerabilities

Vulnerabilities published for node-tmp in the last 30 days: 0. Listed in the KEV catalogue: 0.

Filter vulnerabilities
Clear filters

Vulnerabilities: 3

  1. CVE-2026-49982

    High · CVSS 8.2EPSS 0.5%No fix published

    tmp: Type-confusion bypass of _assertPath in [email protected] 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 an

    Published Updated
  2. CVE-2026-44705

    High · CVSS 7.7EPSS 0.43%No fix published

    tmp: Path Traversal via unsanitized prefix/postfix enables directory escape

    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 sanitiza

    Published Updated
  3. CVE-2025-54798

    Low · CVSS 2.5EPSS 0.38%No fix published

    tmp does not restrict arbitrary temporary file / directory write via symbolic link `dir` parameter

    tmp is a temporary file and directory creator for node.js. In versions 0.2.3 and below, tmp is vulnerable to an arbitrary temporary file / directory write via symbolic link dir parameter. This is fixed in version 0.2.4.

    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →