7.5high

CVE-2016-3956

npm Token Leak in npm

Also known as GHSA-m5h6-hr3q-22h5

Published 10 y ago · modified 58 d ago · JSON

CVSS
7.5
v3.1 · NVD
CISA KEV
No
not known exploited
EPSS
5.5%
percentile 93%
Public exploits
0
none known

Summary

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.

Exploit prediction (EPSS)

5.46% probability of exploitation in the next 30 days, higher than 93% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.17.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD2.05.0AV:N/AC:L/Au:N/C:P/I:N/A:N

Affected packages

EcosystemPackageAffectedFixed in
npmnpm
<2.15.1
>=3.0.0, <3.8.3
2.15.1
3.8.3

Classification

Weakness
  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
Technology feeds
Node.js (RSS, critical only)

References

  • github.com /npm/npm/issues/8380 · x_refsource_CONFIRM, x_transferred
  • github.com /npm/npm/commit/f67ecad59e99a03e5aad8e93cd1a086ae087cb29 · x_refsource_CONFIRM, x_transferred
  • www-01.ibm.com /support/docview.wss?uid=swg21980827 · x_refsource_CONFIRM, x_transferred
  • github.com /npm/npm/commit/fea8cc92cee02c720b58f95f14d315507ccad401 · x_refsource_CONFIRM, x_transferred
  • blog.npmjs.org /post/142036323955/fixing-a-bearer-token-vulnerability · x_refsource_CONFIRM, x_transferred
  • nodejs.org /en/blog/vulnerability/npm-tokens-leak-march-2016/ · x_refsource_CONFIRM, x_transferred
  • nvd.nist.gov /vuln/detail/CVE-2016-3956 · advisory
  • github.com /advisories/GHSA-m5h6-hr3q-22h5 · advisory
  • nodejs.org /en/blog/vulnerability/npm-tokens-leak-march-2016 · web
  • npmjs.com /advisories/98 · web

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.