Description
Affected versions of `npm-registry-fetch` are vulnerable to an information exposure vulnerability through log files. The cli supports URLs like `<protocol>://[<user>[:<password>]@]<hostname>[:<port>][:][/]<path>`. The password value is not redacted and is printed to stdout and also to any generated log files.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | npm-registry-fetch | < 4.0.5 | 4.0.5 | GHSA-jmqm-f2gx-4fjv |
| npm | npm-registry-fetch | >= 5.0.0, < 8.1.1 | 8.1.1 | GHSA-jmqm-f2gx-4fjv |
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