Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.4%top 68%

CVE-2026-42570: CWE-770: Allocation of Resources Without Limits or Throttling in sveltejs devalue

0
High
VulnerabilityCVE-2026-42570cvecve-2026-42570cwe-770
Published: 06/09/2026 (06/09/2026, 16:12:26 UTC)
Source: CVE Database V5
Vendor/Project: sveltejs
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

devalue
pkg:npm/devalue
Affected versions
>=5.6.3 <5.8.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/18/2026, 14:47:15 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses