CVE-2024-57079 @zag-js/core prototype pollution
Attackers can cause a Denial of Service in applications using @zag-js/core by exploiting prototype pollution in the deepMerge function.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-57079?
CVE-2024-57079 is a high-severity denial of service 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.deepMerge function of @zag-js/core v0.50.0 allows attackers to cause a Denial of Service (DoS) via supplying a crafted payload.
Weakness: CWE-400
Which versions are affected by CVE-2024-57079?
2 open source packages ship an affected version, including @zag-js/core.
| Package | Affected | Fixed in |
|---|---|---|
@zag-js/core npm | All versions | 0.82.2 |
@zag-js/core npm | All versions | 0.82.2 |
How do I fix CVE-2024-57079?
Upgrade @zag-js/core to 0.82.2 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-57079 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-57079 exists.
Sources
Also known as GHSA-fg4m-w35q-vfg2.