{"id":"CVE-2025-57820","published":"2025-08-26T22:33:19Z","modified":"2025-08-27T20:42:46Z","title":"Svelte devalue vulnerable to prototype pollution","vendor":"sveltejs","product":"devalue","tier":"tail","description":{"text":"Svelte devalue is a utility library. Prior to version 5.3.2, a string passed to devalue.parse could represent an object with a __proto__ property and devalue.parse does not check that an index is numeric. This could result in assigning prototypes to objects and properties, leading to prototype pollution. This issue has been fixed in version 5.3.2","provenance":"source","from":"CVE.org"},"cvss":{"score":7.9,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00801,"percentile":0.53385,"provenance":"source"},"cwes":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"references":[{"url":"https://github.com/sveltejs/devalue/security/advisories/GHSA-vj54-72f3-p5jv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sveltejs/devalue/commit/0623a47c9555b639c03ff1baea82951b2d9d1132","tags":["x_refsource_MISC"]}],"priority":{"score":16.2,"factors":[{"name":"EPSS percentile","points":10.68},{"name":"CVSS severity","points":5.53}]},"vendorSlug":"sveltejs","affectedVersions":[{"vendor":"sveltejs","product":"devalue","versions":["< 5.3.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-08-27T20:42:34.984525Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"devalue","vulnerableRanges":["<5.3.2"],"patched":["5.3.2"],"from":["GHSA-vj54-72f3-p5jv"],"provenance":"source"}],"summary":{"text":"Svelte devalue, a utility library from sveltejs, contains a prototype pollution flaw in its devalue.parse function, which fails to reject a \"__proto__\" property in an input string and does not verify that array indices are numeric.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:57Z"},"euvd":{"id":"EUVD-2025-25863","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-sveltejs-devalue-cve-2025-57820","children":[{"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"]}]},{"from":"CVE-2025-57820","to":"CVE-2026-22775","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/11755849fa0634ae294a15ec0aef2f43efcad7c4"],"basis":"shared function","functions":["unflatten"]}]},{"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-2025-57820","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/0623a47c9555b639c03ff1baea82951b2d9d1132","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}],"package":"npm:devalue"}}