CVE-2024-37150 Private npm registry support used scope auth token for downloading tarballs

High 7.6 Published Updated

Deno leaks private npm registry credentials to third-party domains when downloading tarballs, exposing sensitive authentication tokens to attackers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-37150?

CVE-2024-37150 is a high-severity vulnerability in denoland deno, published on 6 Jun 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

An issue in `.npmrc` support in Deno 1.44.0 was discovered where Deno would send `.npmrc` credentials for the scope to the tarball URL when the registry provided URLs for a tarball on a different domain. All users relying on .npmrc are potentially affected by this vulnerability if their private registry references tarball URLs at a different domain. This includes usage of deno install subcommand, auto-install for npm: specifiers and LSP usage. It is recommended to upgrade to Deno 1.44.1 and if your private registry ever serves tarballs at a different domain to rotate your registry credentials.

Weakness: CWE-706, CWE-200

Which versions are affected by CVE-2024-37150?

It affects 1 product.

Products include Deno Deno.

How do I fix CVE-2024-37150?

No fix has been published for CVE-2024-37150 yet. Limit exposure of the affected software until one is available.

Is CVE-2024-37150 being exploited?

There is no known exploitation of CVE-2024-37150 in the wild and no public exploit code.

Sources

Also known as GHSA-rfc6-h225-3vxv.

Is CVE-2024-37150 in your software?

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

Check your SBOMs for free