CVE-2016-3956 · mitre
CVE-2016-3956
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.
Published 2016-07-02, last changed 2026-06-17. Weakness: CWE-200.
How to fix
Upgrade to a fixed version: npm 2.15.1, 3.8.3 (npm) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in npm/npm by f67ecad59e, fea8cc92ce, e93d208771. Functions changed by the fix: mapToRegistry, getCredentialsByURI, scopeAuth. Regression tests: test/tap/bearer-token-check.js, test/tap/config-credentials.js, test/tap/map-to-registry.js. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2016-07-02 | Published |
| 2018-07-31 | Package advisory GHSA-m5h6-hr3q-22h5 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 5.46% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-m5h6-hr3q-22h5 | npm (npm) | 2.15.1 |
| GHSA-m5h6-hr3q-22h5 | npm (npm) | 3.8.3 |
Also known as: GHSA-m5h6-hr3q-22h5
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-0775 | 2026-01-23 | 7 | npm cli Incorrect Permission Assignment Local Privilege Escalation Vulnerability |
| CVE-2022-29244 | 2022-06-13 | 7.5 | npm packing does not respect root-level ignore files in workspaces |
| CVE-2020-15095 | 2020-07-07 | 4.4 | Sensitive information exposure through logs in npm cli |
| CVE-2019-16777 | 2019-12-13 | 6.5 | Arbitrary File Overwrite in npm CLI |
| CVE-2019-16776 | 2019-12-13 | 8.1 | Unauthorized File Access in npm CLI before before version 6.13.3 |
| CVE-2019-16775 | 2019-12-13 | 6.5 | Unauthorized File Access in npm CLI before before version 6.13.3 |
| CVE-2018-7408 | 2018-02-22 | 7.8 | same package: npm (npm) |
| CVE-2013-4116 | 2014-04-22 | 3.3 | same package: npm (npm) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-3956, or call /api/v1/vulnerabilities/CVE-2016-3956. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.