What’s Vulnerable › Vulnerabilities
GHSA-x5rw-q4pp-hg5g: devalue: stringifyAsync can cause an unhandled rejection despite a caught returned promise
- Severity: high (CVSS 7.5)
- Exploited in the wild: not listed in CISA KEV
- Public exploit or detection template: none known
- Published: 2026-10-01 · updated 2026-10-01
- Weakness: CWE-248
Description
When serializing multiple promises, a later promise can reject before an earlier one settles. An internal rejected promise remains unhandled even if the caller catches the returned `stringifyAsync` promise. Under Node's default unhandled-rejection behavior this can terminate the process. Applications whose asynchronous failures/timing can be influenced by requests are potentially exposed. This is essentially impossible to exploit, and is much more likely to surface as a developer-introduced bug.
Affected products
- Npm Devalue: from 5.8.0 before 5.9.3 — fixed in 5.9.3
How to fix
Upgrade to a fixed version: Npm Devalue 5.9.3. Check the vendor advisory for mitigations.
References
- https://github.com/sveltejs/devalue/security/advisories/GHSA-x5rw-q4pp-hg5g
- https://github.com/sveltejs/devalue/commit/dae8153e9d7541b975cc4018138d6cebec6c1199
- https://github.com/sveltejs/devalue
- https://github.com/sveltejs/devalue/releases/tag/v5.9.3
Get alerted when GHSA-x5rw-q4pp-hg5g or the next vulnerability affects your stack