CVE-2021-25948 Prototype Pollution
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.
| Package | Affected | Fixed in |
|---|---|---|
expand-hash npm | All versions to 1.0.1 | None |
expand-hash npm | All versions to 1.0.1 | None |
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.