CVE-2026-123564
JSON

8.7high

Sveltejs devalue before 5.9.3 Memory Exhaustion via uneval Sparse Arrays

Severity
8.7high CVSS:4.0 by VulnCheck
Exploit likelihood
0.42% (higher than 38% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck
Also known as
GHSA-wf3x-273g-mvxv

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.

Affected

Product or packageVersionsReported by
sveltejs devaluefrom 1.0.0 before 5.9.3
Not affected: 5.9.3
CVE List
devalue (npm)from 1.0.0 before 5.9.3GitHub Advisory Database

All scores

VulnCheck8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
VulnCheck7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHublow CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:N/SA:L

Classification

CWE-400CWE-770CWE-789

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

Evaluating legitimate uneval output for a sparse array can allocate memory proportional to its declared length. A tiny serialized value can therefore cause large memory allocation in a consuming browser/runtime. This occurs during evaluation of generated code, not in default parse sparse-array construction.

You would only be affected by this if you were serializing very large sparse arrays and then evaluating the results. In the general use case for uneval of sending data to the client, the worst that could happen is the browser tab running out of memory.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-123564 changed 2026-11-12CVE Terms of Use
GitHub Advisory DatabaseGHSA-wf3x-273g-mvxv changed 2026-11-08CC-BY-4.0
NVDCVE-2026-123564 changed 2026-11-12Public domain