GHSA-hx4r-w6wj-j8fg devalue: Residual sparse-array CPU amplification in uneval
An attacker can cause CPU exhaustion and event-loop blocking in applications using the devalue library by passing crafted sparse arrays to the uneval function.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-hx4r-w6wj-j8fg?
GHSA-hx4r-w6wj-j8fg is a denial of service vulnerability in devalue, published on 1 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
uneval performs synchronous work proportional to a sparse array's declared length. An application that passes attacker-influenced sparse values to uneval can suffer event-loop blocking. Since attacker-controlled creation of sparse arrays is so difficult, this vulnerability is very difficult to exploit.Which versions are affected by GHSA-hx4r-w6wj-j8fg?
2 open source packages ship an affected version, including devalue.
| Package | Affected | Fixed in |
|---|---|---|
devalue npm | All versions | 5.9.3 |
devalue npm | All versions | 5.9.3 |
How do I fix GHSA-hx4r-w6wj-j8fg?
Upgrade devalue to 5.9.3 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 GHSA-hx4r-w6wj-j8fg being exploited?
There is no known exploitation of GHSA-hx4r-w6wj-j8fg in the wild and no public exploit code.