Affected versions
npmdevalue
- Affected versions
- < 5.9.1
- Fixed version
- 5.9.2
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
Exploitation
Description
Impact
devalue.parse prior to version 5.9.2 fails to reject out-of-bounds indices. Specially-crafted payloads can exploit this to cause devalue to alternate between different array representations, resulting in work that is quadratic with payload size.
Applications are potentially affected if they call devalue.parse with untrusted data.
Patches
The bug is fixed in devalue@5.9.2.
Links
- https://github.com/advisories/GHSA-9rgm-9g3h-6x36
- https://github.com/sveltejs/devalue
- https://github.com/sveltejs/devalue/commit/8b2a4562c446d7c36d9d629778079a5fae4243e1
- https://github.com/sveltejs/devalue/releases/tag/v5.9.2
- https://github.com/sveltejs/devalue/security/advisories/GHSA-9rgm-9g3h-6x36
- https://nvd.nist.gov/vuln/detail/CVE-2026-81176
Credits
- Rich-Harris
- kq5y
- elliott-with-the-longest-name-on-github

