CVE-2021-25948 Prototype Pollution

Critical 9.8 Published Updated

Prototype pollution in expand-hash allows attackers to cause denial of service and potentially execute arbitrary code.

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

What is CVE-2021-25948?

CVE-2021-25948 is a critical code injection vulnerability in expand-hash, published on 10 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Prototype pollution vulnerability in 'expand-hash' versions 0.1.0 through 1.0.1 allows an attacker to cause a denial of service and may lead to remote code execution.

Weakness: CWE-1321

Which versions are affected by CVE-2021-25948?

2 open source packages ship an affected version, including expand-hash. It affects 1 product.

PackageAffectedFixed in
expand-hash npmAll versions to 1.0.1None
expand-hash npmAll versions to 1.0.1None

Products include Expand-Hash Project Expand-Hash.

How do I fix CVE-2021-25948?

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

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2021-25948 being exploited?

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

Sources

Also known as GHSA-x3wr-v4wx-5qpc.

Is CVE-2021-25948 in your software?

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

Check your SBOMs for free