Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. npm
  4. ›
  5. CVE-2016-3956

CVE-2016-3956: Exposure of Sensitive Information to an Unauthorized Actor

July 31, 2018 (updated June 16, 2021)

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.

References

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

Code Behaviors & Features

Detect and mitigate CVE-2016-3956 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.15.0, all versions starting from 3.0.0 up to 3.8.2

Fixed versions

  • 2.15.1
  • 3.8.3

Solution

Upgrade to versions 2.15.1, 3.8.3 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

npm/npm/CVE-2016-3956.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:16 +0000.