Skip to main content
VulnerabilityPublished Updated

CVE-2026-49982: Node tmp · tmp is a temporary file and directory creator for node.js

Affects node-tmpSource GCVE Database

0
Compare
Authoritative record:CVE-2026-49982· High 8.2

Not known to be exploited · CVSS 8.2 High · fixed in 0.2.7 : patch node-tmp soon.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
8.2High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 43% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.2.7
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 11 Jun 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10node-tmppkg:deb/ubuntu/node-tmp?arch=source&distro=stonkingOther threatsAffected
  • =0.2.5+dfsg+~0.2.6-2
  • =0.2.7+dfsg+~0.2.6-1
Fixed in–
Ubuntu 26.04 LTSnode-tmppkg:deb/ubuntu/node-tmp?arch=source&distro=resoluteOther threatsAffected
  • =0.2.2+dfsg+~0.2.3-1.1
  • =0.2.5+dfsg+~0.2.6-1
  • =0.2.5+dfsg+~0.2.6-2
Fixed in–
Ubuntu 25.10node-tmppkg:deb/ubuntu/node-tmp?arch=source&distro=questingOther threatsAffected
  • =0.2.2+dfsg+~0.2.3-1
  • =0.2.2+dfsg+~0.2.3-1.1
Fixed in–
Ubuntu 24.04 LTSnode-tmppkg:deb/ubuntu/node-tmp?arch=source&distro=nobleOther threatsAffected
  • =0.2.2+dfsg+~0.2.3-1
Fixed in–
Ubuntu 22.04 LTSnode-tmppkg:deb/ubuntu/node-tmp?arch=source&distro=jammyOther threatsAffected
  • =0.2.1+dfsg-1
  • =0.2.1+dfsg-2
  • =0.2.1+dfsg+~0.2.2-1
Fixed in–
Ubuntu 20.04 LTSnode-tmppkg:deb/ubuntu/node-tmp?arch=source&distro=focalOther threatsAffected
  • 0.0.33+dfsg-2 – 0.1.0+dfsg-6
4 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

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.

References

Community reviews

Loading reviews…