GitHub Advisoryadvisory · npm
GHSA-77vg-94rm-hx3p Svelte devalue: DoS via sparse array deserialization
HIGH
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
- https://github.com/sveltejs/devalue/security/advisories/GHSA-77vg-94rm-hx3p web
- https://nvd.nist.gov/vuln/detail/CVE-2026-42570 advisory
- https://github.com/sveltejs/devalue/commit/206ca6712fbc380a4571c59de9ab04b91110792d web
- https://github.com/sveltejs/devalue package
- https://github.com/sveltejs/devalue/releases/tag/v5.8.1 web