CVE-2026-42570: Svelte devalue: DoS via sparse array deserialization

Published May 14, 2026
·
Updated

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.

Other sources

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.

MITRE

Affected Software

2 affected componentsFixes available
npm/devalue>=5.6.3<=5.8.0
5.8.1
svelte Devalue Node.js>=5.6.3<5.8.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/devalue to a version that resolves this vulnerability.

    Fixed in 5.8.1
  2. Upgrade

    Upgrade Svelte devalue (devalue.parse) to a version that resolves this vulnerability.

    Fixed in 5.8.1

Event History

May 14, 2026
Advisory Published
via GitHub·08:23 PM
Data Sourced
via GitHub·08:23 PM
DescriptionSeverityWeaknessAffected Software
Jun 9, 2026
CVE Published
via MITRE·04:12 PM
Data Sourced
via MITRE·04:12 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·05:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·05:17 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-42570?

CVE-2026-42570 has a severity rating of high, with a score of 7.5.

2

What is CVE-2026-42570 about?

CVE-2026-42570 pertains to a denial of service (DoS) vulnerability in the Svelte devalue library caused by excessive memory consumption during sparse array deserialization.

3

How do I fix CVE-2026-42570?

To address CVE-2026-42570, upgrade the Svelte devalue library to version 5.8.1 or higher.

4

What software is affected by CVE-2026-42570?

CVE-2026-42570 affects the npm/devalue and Svelte devalue Node.js libraries.

5

What could be the impact of exploiting CVE-2026-42570?

Exploiting CVE-2026-42570 can lead to denial of service due to excessive memory allocation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203