CVE-2016-3956
HIGH7.5EPSS 3.2%npm Token Leak in npm
Published: 7/31/2018Modified: 4/28/2026
Description
The CLI in npm before 2.15.1 and 3.x before 3.8.3, as used in Node.js 0.10 before 0.10.44, 0.12 before 0.12.13, 4 before 4.4.2, and 5 before 5.10.0, includes bearer tokens with arbitrary requests, which allows remote HTTP servers to obtain sensitive information by reading Authorization headers.
Affected packages (2)
- Debian/npmfrom 0, < 5.8.0+ds-2
- npm/npmfrom 0, < 2.15.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
References (10)
- ADVISORYhttps://github.com/advisories/GHSA-m5h6-hr3q-22h5
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2016-3956
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2016-3956
- WEBhttp://blog.npmjs.org/post/142036323955/fixing-a-bearer-token-vulnerability
- WEBhttps://github.com/npm/npm/commit/f67ecad59e99a03e5aad8e93cd1a086ae087cb29
- WEBhttps://github.com/npm/npm/commit/fea8cc92cee02c720b58f95f14d315507ccad401
- WEBhttps://github.com/npm/npm/issues/8380
- WEBhttps://nodejs.org/en/blog/vulnerability/npm-tokens-leak-march-2016
- WEBhttps://www.npmjs.com/advisories/98
- WEBhttp://www-01.ibm.com/support/docview.wss?uid=swg21980827