Sveltejs devalue memory exhaustion in evaluated sparse array output
sveltejs devalue
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| devalue npm |
|
|
Original description
Sveltejs devalue from 1.0.0 before 5.9.3 contains a memory exhaustion flaw in uneval, whose generated code for sparse arrays allocates memory proportional to the array's declared length when evaluated. Attackers who can influence a very large sparse array serialized by an application can exhaust memory in the browser or runtime evaluating the output.
From the CVE record · VulnCheck