CVE-2026-42570: Svelte devalue: DoS via sparse array deserialization
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.
Security readout for executives and security teams
Plain-English summary
This vulnerability can let an attacker make an affected application consume excessive memory while parsing certain serialized array data. The main business impact is service disruption, not data theft or tampering. It affects Svelte devalue versions 5.6.3 through 5.8.0 and is fixed in 5.8.1.
Executive priority
Treat this as a high-priority availability issue for exposed services, especially production systems that parse untrusted data. It does not indicate confidentiality or integrity compromise from the supplied sources, but denial of service can still cause customer-facing outages.
Technical view
devalue.parse can over-allocate memory when deserializing sparse arrays because of JavaScript engine behavior. The CVSS 3.1 score is 7.5 with network attack vector, low complexity, no privileges, no user interaction, and high availability impact only. The weakness is CWE-770.
Likely exposure
Exposure is most likely in JavaScript applications that directly or transitively use devalue 5.6.3 through 5.8.0 and parse untrusted serialized data. Server-side parsing paths are higher concern because memory exhaustion can affect availability for other users.
Exploitation context
The source bundle does not show known active exploitation, and KEV is false. Exploitation evidence is limited to the public vulnerability description and patch references. The risk is practical denial of service where attacker-controlled input reaches devalue.parse.
Researcher notes
The public record identifies the vulnerable range and fixed version, but does not provide active exploitation evidence. Focus validation on dependency reachability and whether attacker-controlled data reaches devalue.parse. Avoid developing attack payloads; use the advisory and patch to understand the allocation flaw.
Mitigation direction
Upgrade devalue to version 5.8.1 or later.
Refresh dependency lockfiles and redeploy affected applications.
Prioritize internet-facing services that parse client-supplied serialized data.
Reject or strictly limit untrusted serialized input until patched.
Follow vendor advisories for packaged or downstream copies.
Validation and detection
Inventory direct and transitive dependencies for devalue versions 5.6.3 through 5.8.0.
Identify code paths where devalue.parse handles user-controlled or third-party data.
Confirm deployed artifacts resolve devalue to 5.8.1 or later.
Review application monitoring for memory exhaustion or abnormal process restarts.
Check Red Hat advisories if using affected downstream packages.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-770: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-770 · source CWE mapping
Allocation of Resources Without Limits or Throttling
Allocation of Resources Without Limits or Throttling represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.