What’s Vulnerable › Vulnerabilities
GHSA-wf3x-273g-mvxv: devalue: Sparse arrays emitted by uneval cause eager allocation when evaluated
- Severity: low (CVSS 3.0)
- Exploited in the wild: not listed in CISA KEV
- Public exploit or detection template: none known
- Published: 2026-10-01 · updated 2026-10-01
- Weakness: CWE-400
Description
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.
Affected products
- Npm Devalue: from 1.0.0 before 5.9.3 — fixed in 5.9.3
How to fix
Upgrade to a fixed version: Npm Devalue 5.9.3. Check the vendor advisory for mitigations.
References
- https://github.com/sveltejs/devalue/security/advisories/GHSA-wf3x-273g-mvxv
- https://github.com/sveltejs/devalue/commit/6861dbbb7e548849e48bce718e88747a298f7250
- https://github.com/sveltejs/devalue
- https://github.com/sveltejs/devalue/releases/tag/v5.9.3
Get alerted when GHSA-wf3x-273g-mvxv or the next vulnerability affects your stack