CVE-2026-42570: CWE-770: Allocation of Resources Without Limits or Throttling in sveltejs devalue
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.
AI Analysis
Technical Summary
The sveltejs devalue library, used for serializing values into strings beyond JSON.stringify capabilities, contains a vulnerability (CWE-770) in versions >=5.6.3 and <5.8.1. Specifically, the devalue.parse function can be manipulated to allocate significantly more memory than necessary when deserializing sparse arrays, caused by quirks in certain JavaScript engines. This results in excessive memory consumption, potentially impacting availability. The issue is addressed in version 5.8.1. The Red Hat advisory confirms the vulnerability and references the fixed version but does not indicate any known exploits in the wild.
Potential Impact
This vulnerability can cause excessive memory consumption when deserializing sparse arrays using devalue.parse in affected versions. While it does not impact confidentiality or integrity, it poses an availability risk by potentially exhausting system memory, leading to denial of service conditions in applications using the vulnerable library versions.
Mitigation Recommendations
A fix is available in sveltejs devalue version 5.8.1. Users should upgrade to version 5.8.1 or later to remediate this vulnerability. The Red Hat advisory confirms the issue and the availability of a patch. No additional mitigation steps are indicated or required beyond applying the official fix.
CVE-2026-42570: CWE-770: Allocation of Resources Without Limits or Throttling in sveltejs devalue
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.
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The sveltejs devalue library, used for serializing values into strings beyond JSON.stringify capabilities, contains a vulnerability (CWE-770) in versions >=5.6.3 and <5.8.1. Specifically, the devalue.parse function can be manipulated to allocate significantly more memory than necessary when deserializing sparse arrays, caused by quirks in certain JavaScript engines. This results in excessive memory consumption, potentially impacting availability. The issue is addressed in version 5.8.1. The Red Hat advisory confirms the vulnerability and references the fixed version but does not indicate any known exploits in the wild.
Potential Impact
This vulnerability can cause excessive memory consumption when deserializing sparse arrays using devalue.parse in affected versions. While it does not impact confidentiality or integrity, it poses an availability risk by potentially exhausting system memory, leading to denial of service conditions in applications using the vulnerable library versions.
Mitigation Recommendations
A fix is available in sveltejs devalue version 5.8.1. Users should upgrade to version 5.8.1 or later to remediate this vulnerability. The Red Hat advisory confirms the issue and the availability of a patch. No additional mitigation steps are indicated or required beyond applying the official fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-28T17:26:12.084Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-42570","vendor":"Red Hat"}]
Threat ID: 6a283e988dd33fbd8553f3e6
Added to database: 06/09/2026, 16:26:00 UTC
Last enriched: 07/18/2026, 14:47:15 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 44
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.