# devalue: stringifyAsync can cause an unhandled rejection despite a caught returned promise

Advisory record · `GHSA-x5rw-q4pp-hg5g`

- **Identifiers:** `GHSA-x5rw-q4pp-hg5g`
- **State:** Confirmed
- **Severity:** CVSS 4.0, no score published
- **Critical:** No
- **Weakness (CWE):** [CWE-248](https://cwe.mitre.org/data/definitions/248.html) · [CWE-755](https://cwe.mitre.org/data/definitions/755.html)
- **Tags:** [CWE-248](https://agentprime.io/advisories/tag/cwe-248.md) · [CWE-755](https://agentprime.io/advisories/tag/cwe-755.md)
- **Published:** 1 Oct 2026
- **Updated:** 1 Oct 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 1 Oct 2026, 15:15 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `devalue` (npm): affected `>=5.8.0, <5.9.3`; fixed in `5.9.3`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The devalue npm package, versions 5.8.0 up to but not including 5.9.3, can leave an internal promise unhandled when stringifyAsync serializes several promises and a later one rejects before an earlier one settles, even though the caller catches the returned promise. Under Node's default unhandled-rejection behavior this can terminate the process, and the source says applications whose asynchronous failures or timing can be influenced by requests are potentially exposed, though it also calls exploitation essentially impossible. Upgrade to devalue 5.9.3, the fixed version.

Written 31 Oct 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- Score not published, CVSS 4.0: `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** No score.

## Timeline

- 31 Oct 2026, 13:34 UTC: First seen by agentprime
- 31 Oct 2026, 13:34 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-x5rw-q4pp-hg5g)

## Sources

- [GitHub Advisory Database: GHSA-x5rw-q4pp-hg5g](https://github.com/advisories/GHSA-x5rw-q4pp-hg5g)
- [OSV: GHSA-x5rw-q4pp-hg5g](https://osv.dev/vulnerability/GHSA-x5rw-q4pp-hg5g)
- <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>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-x5rw-q4pp-hg5g>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-x5rw-q4pp-hg5g/>. Everything for agents: <https://agentprime.io/llms.txt>.
