Vulnerability · Published Jun 9, 2026 · Assigned by GitHub_M
CVE-2026-42570Svelte devalue: DoS via sparse array deserialization
High 7.5
In plain English
A high-severity resource allocation without limits in devalue from sveltejs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Svelte devalue is a JavaScript library that serializes values into strings when JSON.stringify isn't sufficient for the job. From version 5.6.3 to before version 5.8.1, 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. This issue has been patched in version 5.8.1.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | devalue | 5.8.1 | GHSA-77vg-94rm-hx3p |
Affected products (as reported)
Weakness: CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/sveltejs/devalue/security/advisories/GHSA-77vg-94rm-hx3p x_refsource_CONFIRM
- https://github.com/sveltejs/devalue/commit/206ca6712fbc380a4571c59de9ab04b91110792d x_refsource_MISC
- https://github.com/sveltejs/devalue/releases/tag/v5.8.1 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-42570 vdb-entry, x_refsource_REDHAT
- RHBZ#2487050 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42570.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:57590 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:37272 vendor-advisory, x_refsource_REDHAT