CVE-2024-57068 @tanstack/form-core prototype pollution
Attackers can cause a Denial of Service in TanStack Form Core by exploiting prototype pollution in the deep merge 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-57068?
CVE-2024-57068 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.mutateMergeDeep function of @tanstack/form-core v0.35.0 allows attackers to cause a Denial of Service (DoS) via supplying a crafted payload.
Weakness: CWE-732
Which versions are affected by CVE-2024-57068?
2 open source packages ship an affected version, including @tanstack/form-core.
| Package | Affected | Fixed in |
|---|---|---|
@tanstack/form-core npm | All versions | 0.42.1 |
@tanstack/form-core npm | All versions | 0.42.1 |
How do I fix CVE-2024-57068?
Upgrade @tanstack/form-core to 0.42.1 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-57068 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-57068 exists.
Sources
Also known as GHSA-ggv3-vmgw-xv2q.