sveltejs/devalue · Security
devalue: Residual sparse-array CPU amplification in uneval
- GHSA ID
- GHSA-hx4r-w6wj-j8fg
- Severity
- medium
- Published
- Updated
- CVSS v4
- 6.3 · CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
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.
CWEs
- CWE-400 · Uncontrolled Resource Consumption
- CWE-407 · Inefficient Algorithmic Complexity