Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend HTTP request with malicious serialized payload
-
DeliveryApplication calls devalue.parse on untrusted input
-
ExploitParser allocates huge sparse array via new Array(length)
-
ExecutionV8 engine eagerly allocates gigabytes of contiguous memory
-
PersistProcess exhausts available memory
-
ImpactNode.js crashes with OOM error
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target application to invoke devalue.parse on attacker-controlled input. This occurs when Svelte/SvelteKit apps deserialize server-side rendered props, hydration data, or API responses where the attacker can inject serialized payloads. The vulnerability is ENGINE-SPECIFIC: exploitation succeeds primarily on V8-based JavaScript runtimes (Node.js, Chrome, Deno) that eagerly allocate arrays below ~10^8 length. Other engines like SpiderMonkey may behave differently, limiting cross-platform impact. No special application configuration is required beyond the vulnerable devalue version (5.6.3-5.8.0) being present and reachable parse calls exposed to untrusted data. Authentication is NOT required (PR:N) if the deserialization endpoint is publicly accessible, common in SSR frameworks. User interaction is NOT needed (UI:N). Attack complexity is LOW (AC:L) as demonstrated by the 5-line exploit in advisory test cases. |
| Impact | Real-world risk is moderate despite CVSS 7.5 (High). The AV:N/AC:L/PR:N/UI:N vector indicates trivial remote exploitation requiring no authentication, and A:H confirms high availability impact. However, exploitation requires the application to accept and parse untrusted devalue payloads-primarily Svelte/SvelteKit apps deserializing server-sent data or user-controlled serialized state. EPSS data not provided, but public exploit code exists in the GitHub advisory test suite (buildSparseDoSPayload function), demonstrating 20GB allocation attempts with small payloads. Not in CISA KEV, indicating no confirmed widespread exploitation. The fix is narrowly scoped (5.8.1) and backward-compatible. Priority depends on exposure: high for public-facing Svelte apps parsing untrusted input, low for internal tools with authenticated-only deserialization. The DoS is process-level (crash/freeze), not persistent infrastructure damage. |
| Exploit ScenarioDerived | An attacker identifies a SvelteKit application deserializing URL-encoded state parameters or server-sent serialized props using devalue. They craft a malicious payload: '[{"a":1},[-7,100000000,0,2],42]' (a sparse array claiming 100 million elements but containing one value). Sending this via HTTP POST to the deserialization endpoint forces the Node.js process to allocate ~800MB of contiguous memory. Repeating with 10 concurrent requests triggers out-of-memory crash, taking the application offline. The publicly available test case buildSparseDoSPayload demonstrates constructing payloads totaling 20GB implied allocation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 14, 2026
Excessive memory allocation in devalue.parse (npm package) allows remote attackers to exhaust process memory via crafted sparse array payloads. Affects versions 5.6.3 through 5.8.0. Exploits JavaScript engine behavior where declaring large array lengths triggers eager memory allocation in V8, enabling denial-of-service with minimal payload size. Vendor-released patch 5.8.1 forces sparse allocation by touching MAX_ARRAY_INDEX before setting length. No active exploitation confirmed (not in CISA KEV), but publicly available exploit code exists in security advisory test cases.
RemediationAI
Upgrade devalue to version 5.8.1 or later, confirmed fixed by vendor advisory GHSA-77vg-94rm-hx3p and release tag https://github.com/sveltejs/devalue/releases/tag/v5.8.1. The patch commit 206ca6712fbc380a4571c59de9ab04b91110792d modifies src/parse.js to force sparse allocation. For npm projects, run 'npm update devalue' or 'npm install devalue@5.8.1'. SvelteKit users should update SvelteKit to a version bundling devalue 5.8.1+. If immediate upgrade is blocked, implement input validation to reject payloads containing SPARSE array markers (value -7 in devalue encoding) from untrusted sources, though this breaks legitimate sparse array deserialization. Alternatively, enforce payload size limits (<10KB) and run devalue.parse in isolated workers with memory limits (Node.js --max-old-space-size=512) to contain crashes-note this still allows DoS but prevents cascading OOM on shared infrastructure. No vendor-provided workarounds exist; upgrade is the only complete mitigation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The devalue library (pkg:npm/devalue) provides serialization/deserialization primitives used in Svelte and SvelteKit frameworks. The vulnerability resides in the sparse array deserialization logic within devalue.parse. The SPARSE encoding format [-7, length, idx, val, ...] previously called new Array(length) directly on untrusted length values. In V8 JavaScript engine (Chrome, Node.js), array lengths below ~10^8 trigger eager allocation of contiguous backing stores. An attacker-controlled payload declaring arrays with huge lengths (e.g., 100 million) but minimal actual data forces the parser to allocate gigabytes of memory. This is a CWE-770 (Allocation of Resources Without Limits or Throttling) issue where input validation failed to prevent resource exhaustion. The patch addresses this by first touching array[MAX_ARRAY_INDEX] to force V8 into dictionary-elements mode, where length becomes a number property without contiguous allocation, then deleting that index and setting the final length safely.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Primary rating from Vendor (https://github.com/sveltejs/devalue).
CVSS VectorVendor: https://github.com/sveltejs/devalue
DescriptionCVE.org
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.
Blast Radius
ecosystem impact- 33 npm packages depend on devalue (2 direct, 31 indirect)
Ecosystem-wide dependent count for version 5.6.3.
Executive ViewAI
The devalue npm package versions 5.6.3 through 5.8.0 contain a memory exhaustion vulnerability that allows remote attackers to trigger denial-of-service by sending crafted array payloads, potentially disrupting any application that parses untrusted JSON or serialized data through this library. Organizations using affected versions in production should prioritize immediate patching to prevent service unavailability attacks.
If immediate patching is blocked: (1) Implement input size limits and array length validation before devalue.parse() calls; (2) Deploy rate limiting on endpoints that accept serialized data; (3) Monitor process memory usage and implement automatic service restart thresholds; (4) Consider sandboxing or containerizing devalue usage with memory limits. Apply vendor patch version 5.8.1 as primary remediation.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-35500
GHSA-77vg-94rm-hx3p
NVD
CVE.org
EPSS
VulDB
Exploit-DB