# GHSA-jmqm-f2gx-4fjv: Sensitive information exposure through logs in npm-registry-fetch

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-07-07T18:59:10.000Z
- Modified: 2021-09-22T19:00:07.000Z
- Weaknesses: CWE-352

## 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.

(As written by GitHub Advisory Database.)

## Affected

- npm-registry-fetch (npm): before 4.0.5; from 5.0.0 before 8.1.1

## 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)

## Sources

- GitHub Advisory Database: [GHSA-jmqm-f2gx-4fjv](https://github.com/advisories/GHSA-jmqm-f2gx-4fjv), CC-BY-4.0, modified 2021-09-22

---

Page: https://cve.day/GHSA-jmqm-f2gx-4fjv · Whole record: https://cve.day/GHSA-jmqm-f2gx-4fjv.json · Rebuilt by cve.day 2026-11-25T22:56:45.806Z
