Symlink attack due to predictable tmp folder names Affecting npm package, versions [,1.3.3)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.37% (29th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DOTNET-NPM-60199
  • published13 Feb 2017
  • disclosed22 Apr 2014
  • creditDaniel Kahn Gillmor

Introduced: 22 Apr 2014

CVE-2013-4116  (opens in a new tab)
CWE-377  (opens in a new tab)

How to fix?

Upgrade npm to version 1.3.3 or higher.

Overview

npm is a package manager for JavaScript. Affected versions of the package are vulnerable to Symlink attack due to predictable tmp folder names, which were named /tmp/npm-$PID. An attacker waiting for a process named npm- to load could then go to the folder and arbitrarily change the files in the tmp folder.

CVSS Base Scores

version 3.1