{"id":"CVE-2026-22774","published":"2026-01-15T18:53:21Z","modified":"2026-07-15T01:19:21Z","title":"devalue vulnerable to denial of service due to memory exhaustion in devalue.parse","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 5.3.0 to 5.6.1, certain inputs can cause devalue.parse to consume excessive CPU time and/or memory, potentially leading to denial of service in systems that parse input from untrusted sources. This affects applications using devalue.parse on externally-supplied data. The root cause is the typed array hydration expecting an ArrayBuffer as input, but not checking the assumption before creating the typed array. This vulnerability is fixed in 5.6.2.","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.00625,"percentile":0.50918,"provenance":"source"},"cwes":[{"id":"CWE-405","name":"Asymmetric Resource Consumption (Amplification)"}],"references":[{"url":"https://github.com/sveltejs/devalue/security/advisories/GHSA-vw5p-8cq8-m7mv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sveltejs/devalue/commit/e46afa64dd2b25aa35fb905ba5d20cea63aabbf7","tags":["x_refsource_MISC"]},{"url":"https://github.com/sveltejs/devalue/releases/tag/v5.6.2","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-22774","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2430095","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22774.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:2926","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:2144","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":10.18},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"sveltejs","affectedVersions":[{"vendor":"sveltejs","product":"devalue","versions":[">= 5.3.0, < 5.6.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-01-15T19:16:06.462171Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"devalue","vulnerableRanges":[">=5.3.0, <5.6.2"],"patched":["5.6.2"],"from":["GHSA-vw5p-8cq8-m7mv"],"provenance":"source"}],"summary":{"text":"A flaw in devalue's parse function (devalue.parse, from versions 5.3.0 through 5.6.1 of the JavaScript serialization library devalue, from sveltejs) lets certain crafted inputs drive excessive CPU and memory consumption during typed array hydration, because the code assumes an ArrayBuffer without validating it first. An attacker can exploit this over the network without authentication or user interaction by sending malicious data to any application that calls devalue.parse on externally supplied input, causing denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:27Z"},"euvd":{"id":"EUVD-2026-2790","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-sveltejs-devalue-cve-2025-57820","parents":[{"from":"CVE-2025-57820","to":"CVE-2026-22774","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:devalue","fromFixed":"5.3.2","toFixed":"5.6.2","daysApart":142},{"kind":"same-code","provenance":"machine","files":["src/parse.js"],"commits":["https://github.com/sveltejs/devalue/commit/0623a47c9555b639c03ff1baea82951b2d9d1132","https://github.com/sveltejs/devalue/commit/e46afa64dd2b25aa35fb905ba5d20cea63aabbf7","https://github.com/sveltejs/devalue/commit/11755849fa0634ae294a15ec0aef2f43efcad7c4"],"basis":"shared function","functions":["unflatten"]}]}],"children":[{"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-22774","to":"CVE-2026-81176","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/8b2a4562c446d7c36d9d629778079a5fae4243e1"],"basis":"shared function","functions":["unflatten"]}]}],"packageHistory":[{"cve":"CVE-2025-57820","published":"2025-08-26","fixed":"5.3.2","kev":false},{"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-22774","to":"CVE-2026-30226","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:devalue","fromFixed":"5.6.2","toFixed":"5.6.4","daysApart":55}]}},{"cve":"CVE-2026-42570","published":"2026-06-09","fixed":"5.8.1","kev":false}],"package":"npm:devalue"}}