GitHub Advisory Database
GHSA-9rgm-9g3h-6x36
Svelte devalue: DoS via malformed input
Details
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 [email protected].
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | devalue | All versions before 5.9.2 (fixed in 5.9.2) |