Skip to content

Local Privilege Escalation in npm

Low severity GitHub Reviewed Published Sep 1, 2020 to the GitHub Advisory Database • Updated Jan 9, 2023

Package

npm npm (npm)

Affected versions

< 1.3.3

Patched versions

1.3.3

Description

Affected versions of npm use predictable temporary file names during archive unpacking. If an attacker can create a symbolic link at the location of one of these temporary file names, the attacker can arbitrarily write to any file that the user which owns the npm process has permission to write to, potentially resulting in local privilege escalation.

Recommendation

Update to version 1.3.3 or later.

References

Reviewed Aug 31, 2020
Published to the GitHub Advisory Database Sep 1, 2020
Last updated Jan 9, 2023

Severity

Low

EPSS score

0.042%
(5th percentile)

Weaknesses

CVE ID

CVE-2013-4116

GHSA ID

GHSA-v3jv-wrf4-5845

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.