GHSA-jmqm-f2gx-4fjv: Sensitive information exposure through logs in npm-registry-fetch
5.3
CVSS Score
3.1
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
Published
7/7/2020
Updated
1/9/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
npm-registry-fetch | npm | < 4.0.5 | 4.0.5 |
npm-registry-fetch | npm | >= 5.0.0, < 8.1.1 | 8.1.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The GitHub commit diff shows the vulnerability was fixed by modifying the logRequest
function in check-response.js
. The original code logged res.url
directly (${res.url}), while the patched version parses the URL and replaces the password with '***'. This function's pre-patch behavior matches the described vulnerability of exposing passwords in logs through unredacted URL logging.