VDB
Sign up
HIGH7.5

GHSA-77vg-94rm-hx3p

Svelte devalue: DoS via sparse array deserialization

Quick fix

GHSA-77vg-94rm-hx3p — devalue: upgrade to the fixed version with the command below.

npm install devalue@5.8.1

Details

`devalue.parse` could, due to quirks in some JavaScript engines, be convinced to allocate much more memory than was needed when deserializing sparse arrays, leading to excessive memory consumption.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/devalue
Introduced in: 5.6.3Fixed in: 5.8.1
Fixnpm install devalue@5.8.1

References