# GHSA-X5RW-Q4PP-HG5G: devalue: stringifyAsync can cause an unhandled rejection despite a caught returned promise

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2026-10-01
- Modified: 2026-11-08

## Tracked as

- [CVE-2026-123562](https://cve.now/CVE-2026-123562.md): devalue denial of service in stringifyAsync

## Affected versions

- devalue (npm): from 5.8.0, fixed in 5.9.3

## 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.

## 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

Page: https://cve.now/GHSA-X5RW-Q4PP-HG5G

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
