Multiple vulnerabilities in npm package for Node.js



Published: 2019-12-12 | Updated: 2020-02-24
Risk Low
Patch available YES
Number of vulnerabilities 2
CVE-ID CVE-2019-16775
CWE-ID CWE-22
CWE-61
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
NPM
Web applications / CMS

Vendor isaacs

Security Bulletin

This security bulletin contains information about 2 vulnerabilities.

Updated: 24.02.2020

Assigned CVE-ID to vulnerability #2.

1) Path traversal

EUVDB-ID: #VU23904

Risk: Low

CVSSv3.1: 3.7 [CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N/E:U/RL:O/RC:C]

CVE-ID: N/A

CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Exploit availability: No

Description

The vulnerability allows a remote attacker to perform directory traversal attacks.

The vulnerability exists due to input validation error when processing directory traversal sequences within package.json files. A remote attacker can overwrite arbitrary files on the system outside of the intended node_modules folder through the bin field.

Mitigation

Update to version 6.13.3.

Vulnerable software versions

NPM: 1.1.25 - 6.13.2

External links

http://www.npmjs.com/advisories/1434


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

2) Symlink following

EUVDB-ID: #VU23888

Risk: Low

CVSSv3.1: 3.7 [CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2019-16775

CWE-ID: CWE-61 - UNIX Symbolic Link (Symlink) Following

Exploit availability: No

Description

The vulnerability allows a remote attacker to perform directory traversal attacks.

Versions of the npm CLI prior to 6.13.3 are vulnerable to a symlink reference outside of node_modules. It is possible for packages to create symlinks to files outside of the node_modules folder through the bin field upon installation. A properly constructed entry in the package.json bin field would allow a package publisher to create a symlink pointing to arbitrary files on a user’s system when the package is installed. Only files accessible by the user running the npm install are affected.

Mitigation

Install update from vendor's website.

Vulnerable software versions

NPM: 1.1.25 - 6.13.2

External links

http://www.npmjs.com/advisories/1436


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###