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

Not scored Published

Attackers can read sensitive credentials from logs or stdout when using npm-registry-fetch with URLs containing passwords.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-jmqm-f2gx-4fjv?

GHSA-jmqm-f2gx-4fjv is a vulnerability in npm-registry-fetch, published on 7 Jul 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Which versions are affected by GHSA-jmqm-f2gx-4fjv?

4 open source packages ship an affected version, including npm-registry-fetch.

PackageAffectedFixed in
npm-registry-fetch npmAll versions4.0.5
npm-registry-fetch npmAll versions4.0.5
npm-registry-fetch npmFrom 5.0.08.1.1
npm-registry-fetch npmFrom 5.0.08.1.1

How do I fix GHSA-jmqm-f2gx-4fjv?

Upgrade npm-registry-fetch to a fixed version for your release line: 4.0.5 or 8.1.1.

Is GHSA-jmqm-f2gx-4fjv being exploited?

There is no known exploitation of GHSA-jmqm-f2gx-4fjv in the wild and no public exploit code.

Sources

Is GHSA-jmqm-f2gx-4fjv in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free