CVE-2024-57072 module-from-string prototype pollution
Attackers can cause Denial of Service in Node.js applications using module-from-string via prototype pollution in lib.requireFromString.
- 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-2024-57072?
CVE-2024-57072 is a high-severity code injection vulnerability in n/a, published on 5 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A prototype pollution in the lib.requireFromString function of module-from-string v3.3.1 allows attackers to cause a Denial of Service (DoS) via supplying a crafted payload.
Weakness: CWE-1321
Which versions are affected by CVE-2024-57072?
2 open source packages ship an affected version, including module-from-string.
| Package | Affected | Fixed in |
|---|---|---|
module-from-string npm | All versions to 3.3.1 | None |
module-from-string npm | All versions to 3.3.1 | None |
How do I fix CVE-2024-57072?
No fix has been published for CVE-2024-57072 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-2024-57072 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-57072 exists.
Sources
Also known as GHSA-q5j8-9m9g-x2jh.