Sveltejs devalue's `devalue.parse` and `devalue.unflatten` emit objects with `__proto__` own properties
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
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: ```ts const result = devalue.parse(/* input creating an object with a __proto__ property */); const target = {}; Object.assign(target, result); // target's prototype is now polluted ```
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | devalue (npm) | 4.0.0 to before 5.6.4 | 5.6.4 | Patch available | GHSA-mwv9-gp5h-frr4 |
- devalue (npm) Vendor— Affected 4.0.0 to before 5.6.4 Fixed in 5.6.4 Patch available GHSA-mwv9-gp5h-frr4
Remediation
- Fix · GHSA-mwv9-gp5h-frr4 devalue (npm) Fixed in 5.6.4 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-mwv9-gp5h-frr4
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences