NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

GHSA-mwv9-gp5h-frr4: Sveltejs devalue's `devalue.parse` and `devalue.unflatten` emit objects with `__proto__` own properties

lowCVSS 4.0 2.7

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:

Published Mar 12, 2026 · Updated Jun 26, 2026

Affected packages

devalue

Ecosystem
npm
Affected
>= 4.0.0, < 5.6.4
Fixed in
5.6.4
Check
npm ls devalue

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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:

const result = devalue.parse(/* input creating an object with a __proto__ property */);
const target = {};
Object.assign(target, result); // target's prototype is now polluted

Credited to elliott-with-the-longest-name-on-github, KarimPwnz, wim-vercel, mattiasljungstrom, Wenxin-Jiang, massif-01.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries