{"id":"CVE-2026-42570","published":"2026-06-09T16:12:26Z","modified":"2026-08-24T12:07:13Z","title":"Svelte devalue: DoS via sparse array deserialization","vendor":"sveltejs","product":"devalue","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00397,"percentile":0.34777,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/sveltejs/devalue/security/advisories/GHSA-77vg-94rm-hx3p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sveltejs/devalue/commit/206ca6712fbc380a4571c59de9ab04b91110792d","tags":["x_refsource_MISC"]},{"url":"https://github.com/sveltejs/devalue/releases/tag/v5.8.1","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-42570","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2487050","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42570.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:57590","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:37272","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":12.2,"factors":[{"name":"EPSS percentile","points":6.96},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"sveltejs","affectedVersions":[{"vendor":"sveltejs","product":"devalue","versions":[">= 5.6.3, < 5.8.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-06-09T18:06:15.435480Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"devalue","vulnerableRanges":[">=5.6.3, <5.8.1"],"patched":["5.8.1"],"from":["GHSA-77vg-94rm-hx3p"],"provenance":"source"}],"summary":{"text":"The flaw is in the parse function of the devalue JavaScript library (sveltejs devalue), which is used to deserialize values that JSON.stringify cannot handle, and it causes parse to allocate far more memory than needed when processing sparse arrays. An attacker able to supply input that is deserialized by devalue.parse can trigger excessive memory consumption over the network without authentication or user interaction, affecting versions from 5.6.3 up to but not including 5.8.1, which contain the fix.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:45Z"},"euvd":{"id":"EUVD-2026-35500","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-sveltejs-devalue-cve-2025-57820","parents":[{"from":"CVE-2025-57820","to":"CVE-2026-42570","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/parse.js"],"commits":["https://github.com/sveltejs/devalue/commit/0623a47c9555b639c03ff1baea82951b2d9d1132","https://github.com/sveltejs/devalue/commit/206ca6712fbc380a4571c59de9ab04b91110792d"],"basis":"shared function","functions":["unflatten"]}]},{"from":"CVE-2026-22774","to":"CVE-2026-42570","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/parse.js"],"commits":["https://github.com/sveltejs/devalue/commit/e46afa64dd2b25aa35fb905ba5d20cea63aabbf7","https://github.com/sveltejs/devalue/commit/11755849fa0634ae294a15ec0aef2f43efcad7c4","https://github.com/sveltejs/devalue/commit/206ca6712fbc380a4571c59de9ab04b91110792d"],"basis":"shared function","functions":["unflatten"]}]},{"from":"CVE-2026-22775","to":"CVE-2026-42570","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/parse.js"],"commits":["https://github.com/sveltejs/devalue/commit/11755849fa0634ae294a15ec0aef2f43efcad7c4","https://github.com/sveltejs/devalue/commit/206ca6712fbc380a4571c59de9ab04b91110792d"],"basis":"shared function","functions":["unflatten"]}]}],"children":[{"from":"CVE-2026-42570","to":"CVE-2026-81176","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:devalue","fromFixed":"5.8.1","toFixed":"5.9.2","daysApart":99},{"kind":"same-code","provenance":"machine","files":["src/parse.js"],"commits":["https://github.com/sveltejs/devalue/commit/206ca6712fbc380a4571c59de9ab04b91110792d","https://github.com/sveltejs/devalue/commit/8b2a4562c446d7c36d9d629778079a5fae4243e1"],"basis":"shared function","functions":["unflatten"]}]},{"from":"CVE-2026-42570","to":"CVE-2026-92708","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/utils.js"],"commits":["https://github.com/sveltejs/devalue/commit/206ca6712fbc380a4571c59de9ab04b91110792d","https://github.com/sveltejs/devalue/commit/46dc877b3570dafb1cd3291b9bb48cecef8f7266"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-22774","published":"2026-01-15","fixed":"5.6.2","kev":false},{"cve":"CVE-2026-22775","published":"2026-01-15","fixed":"5.6.2","kev":false},{"cve":"CVE-2026-30226","published":"2026-03-11","fixed":"5.6.4","kev":false,"link":{"from":"CVE-2026-30226","to":"CVE-2026-42570","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:devalue","fromFixed":"5.6.4","toFixed":"5.8.1","daysApart":90}]}},{"cve":"CVE-2026-42570","published":"2026-06-09","fixed":"5.8.1","kev":false},{"cve":"CVE-2026-81176","published":"2026-09-16","fixed":"5.9.2","kev":false},{"cve":"CVE-2026-92708","published":"2026-09-18","fixed":"5.9.3","kev":false}],"package":"npm:devalue"}}