Vulnerability library
Security checkJune 26, 2026

Sveltejs devalue's `devalue.parse` and `devalue.unflatten` emit objects with `__proto__` own properties

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Low severitynpmdevalue

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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 scan

Related Issues

See something that needs correcting? Let us knowUpdated June 26, 2026