Skip to content
OpenAdvisories
High CVE-2016-3956 EUVD-2018-0293GHSA-m5h6-hr3q-22h5

npm Token Leak in npm

Published Jul 2, 2016 · Updated Aug 6, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 npm 5.8.0+ds-2 —
Debian 13 npm 5.8.0+ds-2 —
Debian 12 npm 5.8.0+ds-2 —
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS npm 3.5.2-0ubuntu4.1.18.04.1~esm1 USN-4785-1
Ubuntu Pro 16.04 LTS npm 3.5.2-0ubuntu4.1.16.04.1~esm1 USN-4785-1

Affected packages

EcosystemPackageAffectedFixedRecord
npm npm < 2.15.1 2.15.1 GHSA-m5h6-hr3q-22h5
npm npm >= 3.0.0, < 3.8.3 3.8.3 GHSA-m5h6-hr3q-22h5

Advisories 1

References