Sveltejs devalue
Svelte devalue: DoS via sparse array deserialization
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by CNA · CWE-770
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
sveltejs devalue
- >= 5.6.3, < 5.8.1
Fixed in 5.8.1
Mitigation
Upgrade devalue to 5.8.1 or later.
References
- Vendor advisory github.com/sveltejs/devalue/security/advisorie…
- Patch github.com/sveltejs/devalue/commit/206ca6712fb…
- Release notes github.com/sveltejs/devalue/releases/tag/v5.8.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.