#VU66698 Information disclosure in NPM


Published: 2022-08-22

Vulnerability identifier: #VU66698

Vulnerability risk: Medium

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

CVE-ID: CVE-2022-29244

CWE-ID: CWE-200

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
NPM
Web applications / CMS

Vendor: isaacs

Description

The vulnerability allows a remote attacker to gain access to potentially sensitive information.

The vulnerability exists due to npm pack ignores root-level .gitignore and .npmignore file exclusion directives when run in a workspace or with a workspace flag (ie. `--workspaces`, `--workspace=`). Anyone who has run `npm pack` or `npm publish` inside a workspace, may be affected and have published files into the npm registry they did not intend to include.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

NPM: 7.9.0 - 8.10.0


External links
http://github.com/nodejs/node/pull/43210
http://github.com/nodejs/node/releases/tag/v18.3.0
http://github.com/npm/cli/security/advisories/GHSA-hj9c-8jmm-8c52
http://github.com/npm/cli/tree/latest/workspaces/libnpmpack
http://github.com/nodejs/node/releases/tag/v17.9.1
http://github.com/npm/npm-packlist
http://github.com/npm/cli/tree/latest/workspaces/libnpmpublish
http://github.com/npm/cli/releases/tag/v8.11.0
http://github.com/nodejs/node/releases/tag/v16.15.1
http://security.netapp.com/advisory/ntap-20220722-0007/


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.


Latest bulletins with this vulnerability