GHSA-mwv9-gp5h-frr4 Sveltejs devalue's `devalue.parse` and `devalue.unflatten` emit objects with `__proto__` own properties
LowCVSS 2.7
- Published
- Updated
- Exploit status
- No public exploit known
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:
const result = devalue.parse(/* input creating an object with a __proto__ property */);
const target = {};
Object.assign(target, result); // target's prototype is now polluted
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm devalue(npm) | >= 4.0.0, < 5.6.4 | 5.6.4 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm devalue(npm) | >= 4.0.0, < 5.6.4 | 5.6.4 |
References
- github.com vendor-advisory
- github.com
- github.com patch
- github.com