GitHub Advisoryadvisory · npm

GHSA-77vg-94rm-hx3p Svelte devalue: DoS via sparse array deserialization

HIGH Published 2026-05-14 Modified 2026-06-09 Official page ↗
Aliases
CVE-2026-42570
Ecosystem
npm
Packages
devalue
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-770
Reviewed
2026-05-14

Affected packages

• npm devalue: >= 5.6.3, < 5.8.1 → fixed in 5.8.1

Description

`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.

Related

Alias · CVE (1)

  • CVE-2026-42570 Svelte devalue is a JavaScript library that serializes values into strings when JSON.stringify isn't sufficient for the job. vulnerability

Weakness · CWE (1)

  • CWE-770 Allocation of Resources Without Limits or Throttling weakness

References