Description
Sveltejs devalue from 1.0.0 before 5.9.3 contains a memory exhaustion flaw in uneval, whose generated code for sparse arrays allocates memory proportional to the array's declared length when evaluated. Attackers who can influence a very large sparse array serialized by an application can exhaust memory in the browser or runtime evaluating the output.
Published: 2026-11-08
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Memory Exhaustion
Action: Patch Now
AI Analysis

Impact

The vulnerability resides in the Sveltejs devalue library, specifically in the uneval function. A memory exhaustion flaw occurs when the generated code for sparse arrays allocates memory proportional to the array’s declared length during evaluation. Attackers who can influence a large sparse array that an application serializes can force the browser or runtime to consume excessive memory when the serialized output is evaluated, potentially crashing the application or browser.

Affected Systems

Versions of sveltejs:devalue from 1.0.0 up to and including 5.9.2 are impacted. The advisory indicates that the issue is fixed in 5.9.3 and later. No other product versions are listed as affected.

Risk and Exploitability

The CVSS score of 8.7 places this issue in the high severity range, and although no EPSS score is available, memory exhaustion can lead to denial of service. The likely attack vector is an application that passes untrusted data to devalue’s uneval and then evaluates the output in a browser or runtime environment. If a malicious user can craft a very large sparse array to be serialized, the resulting evaluation can exhaust available memory, disrupt normal operation, or crash the client.

Generated by OpenCVE AI on November 8, 2026 at 02:38 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the sveltejs:devalue library to version 5.9.3 or later.
  • Avoid passing untrusted or user-controlled data to the uneval function of devalue.
  • Implement validation to restrict the size of arrays before serialization to limit potential memory usage.

Generated by OpenCVE AI on November 8, 2026 at 02:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 08 Nov 2026 01:45:00 +0000

Type Values Removed Values Added
Description Sveltejs devalue from 1.0.0 before 5.9.3 contains a memory exhaustion flaw in uneval, whose generated code for sparse arrays allocates memory proportional to the array's declared length when evaluated. Attackers who can influence a very large sparse array serialized by an application can exhaust memory in the browser or runtime evaluating the output.
Title Sveltejs devalue before 5.9.3 Memory Exhaustion via uneval Sparse Arrays
First Time appeared Svelte
Svelte devalue
Weaknesses CWE-770
CPEs cpe:2.3:a:svelte:devalue:*:*:*:*:*:*:*:*
Vendors & Products Svelte
Svelte devalue
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-08T01:38:03.802Z

Reserved: 2026-11-06T00:50:45.483Z

Link: CVE-2026-123564

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-08T02:16:48.877

Modified: 2026-11-08T02:16:48.877

Link: CVE-2026-123564

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-08T04:15:14Z

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling