devalue
Affected
- introduced
4.0.0, fixed5.6.4(semver)
Fixed versions
5.6.4
Fix
- Fixed version
5.6.4npm install [email protected]
Advisory
Also known as: CVE-2026-123567
Sveltejs devalue's devalue.parse and devalue.unflatten emit objects with __proto__ own properties
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 pollutedLow Basis: The source's own band: LOW
4.0.0, fixed 5.6.4 (semver)5.6.4
5.6.4npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0