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 package | Versions | Reported by |
|---|---|---|
| sveltejs devalue | from 1.0.0 before 5.9.3 Not affected: 5.9.3 | CVE List |
| devalue (npm) | from 1.0.0 before 5.9.3 | GitHub Advisory Database |
All scores
| VulnCheck | 8.7high CVSS:4.0 | 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 |
| VulnCheck | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | low CVSS:4.0 | CVSS: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
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-123564 changed 2026-11-12 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wf3x-273g-mvxv changed 2026-11-08 | CC-BY-4.0 |
| NVD | CVE-2026-123564 changed 2026-11-12 | Public domain |