KeygraphLabs · CVE MCP

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.

CVSS
7.5
high, from NVD
EPSS
5.46%
percentile 93.0%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

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-02Published
2018-07-31Package advisory GHSA-m5h6-hr3q-22h5
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 5.46%
2026-12-02Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-m5h6-hr3q-22h5npm (npm)2.15.1
GHSA-m5h6-hr3q-22h5npm (npm)3.8.3

Also known as: GHSA-m5h6-hr3q-22h5

Related

CVEPublishedCVSSSummary
CVE-2026-07752026-01-237npm cli Incorrect Permission Assignment Local Privilege Escalation Vulnerability
CVE-2022-292442022-06-137.5npm packing does not respect root-level ignore files in workspaces
CVE-2020-150952020-07-074.4Sensitive information exposure through logs in npm cli
CVE-2019-167772019-12-136.5Arbitrary File Overwrite in npm CLI
CVE-2019-167762019-12-138.1Unauthorized File Access in npm CLI before before version 6.13.3
CVE-2019-167752019-12-136.5Unauthorized File Access in npm CLI before before version 6.13.3
CVE-2018-74082018-02-227.8same package: npm (npm)
CVE-2013-41162014-04-223.3same 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.

NVD · CVE.org