7.5high
Svelte devalue: DoS via sparse array deserialization
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.55% (higher than 47% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-77vg-94rm-hx3p
Description
Svelte devalue is a JavaScript library that serializes values into strings when JSON.stringify isn't sufficient for the job. From version 5.6.3 to before version 5.8.1, 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. This issue has been patched in version 5.8.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| sveltejs devalue | >= 5.6.3, < 5.8.1 | CVE List |
| rh-podman-desktop | Not specified Not affected: from 0:1.1.2-1.el10_2 before * | CVE List |
| rhtas/rekor-search-ui-rhel9 | Not specified Not affected: from 1783327185 before * | CVE List |
| rh-podman-desktop.git | Not specified | CVE List |
| devalue (npm) | from 5.6.3 before 5.8.1 | GitHub Advisory Database |
| svelte devalue | from 5.6.3 before 5.8.1 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| redhat-SADP | 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 | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
Svelte devalue is a JavaScript library that serializes values into strings when JSON.stringify isn't sufficient for the job. From version 5.6.3 to before version 5.8.1, 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. This issue has been patched in version 5.8.1.
GitHub Advisory Database
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.
NVD (es)
Svelte devalue es una biblioteca de JavaScript que serializa valores en cadenas cuando JSON.stringify no es suficiente para la tarea. Desde la versión 5.6.3 hasta antes de la versión 5.8.1, devalue.parse podría, debido a peculiaridades en algunos motores de JavaScript, ser inducido a asignar mucha más memoria de la necesaria al deserializar arrays dispersos, lo que lleva a un consumo excesivo de memoria. Este problema ha sido parcheado en la versión 5.8.1.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42570 changed 2026-08-24 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-77vg-94rm-hx3p changed 2026-06-09 | CC-BY-4.0 |
| NVD | CVE-2026-42570 changed 2026-08-24 | Public domain |