Sveltejs devalue resource exhaustion in repeated-string uneval
sveltejs devalue
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| devalue npm |
|
|
Original description
Sveltejs devalue before 5.9.3 contains a resource exhaustion vulnerability where repeated primitive strings cause quadratic expansion in the uneval function. Attackers can supply a small crafted payload that is parsed and then passed to uneval, producing a very large serialized string that exhausts memory or CPU.
From the CVE record · VulnCheck