Description
In some circumstances, devalue.parse and devalue.unflatten could emit objects with __proto__ own properties. This in and of itself is not a security vulnerability (and is possible with, for example, JSON.parse as well), but it can result in prototype injection if downstream code handles it incorrectly:
Recommendation
Update the devalue package to the latest compatible version. Followings are version details:
- Affected version(s): >= 4.0.0, < 5.6.4
- Patched version(s): 5.6.4
References
Could your website be exposed too?
SmartScanner can check your website for Sveltejs devalue's `devalue.parse` and `devalue.unflatten` emit objects with `__proto__` own properties and gives you actionable findings to investigate.
Start a free scanRelated Issues
- devalue has prototype pollution in devalue.parse and devalue.unflatten - CVE-2026-30226
- devalue `uneval`ed code can create objects with polluted prototypes when `eval`ed - Vulnerability
- Prototype pollution in emit function - Vulnerability
- Prototype Pollution in unflatten - Vulnerability


