GitHub Advisoryadvisory · npm
GHSA-jmqm-f2gx-4fjv Sensitive information exposure through logs in npm-registry-fetch
MEDIUM
Official page ↗
- Ecosystem
- npm
- Packages
- npm-registry-fetch
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Weaknesses
- CWE-352
- Reviewed
- 2020-07-07
Affected packages
• npm npm-registry-fetch: < 4.0.5 → fixed in 4.0.5
• npm npm-registry-fetch: >= 5.0.0, < 8.1.1 → fixed in 8.1.1
Description
Affected versions of `npm-registry-fetch` are vulnerable to an information exposure vulnerability through log files. The cli supports URLs like `://[[:]@][:][:][/]`. The password value is not redacted and is printed to stdout and also to any generated log files.
Related
Weakness · CWE (1)
- CWE-352 Cross-Site Request Forgery weakness
References
- https://github.com/npm/npm-registry-fetch/security/advisories/GHSA-jmqm-f2gx-4fjv web
- https://github.com/npm/npm-registry-fetch/pull/29 web
- https://github.com/npm/npm-registry-fetch/commit/18bf9b97fb1deecdba01ffb05580370846255c88 web
- https://github.com/npm/npm-registry-fetch package
- https://snyk.io/vuln/SNYK-JS-NPMREGISTRYFETCH-575432 web