Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. devalue
  4. ›
  5. GHSA-x5rw-q4pp-hg5g

GHSA-x5rw-q4pp-hg5g: devalue: stringifyAsync can cause an unhandled rejection despite a caught returned promise

October 1, 2026

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

  • github.com/advisories/GHSA-x5rw-q4pp-hg5g
  • github.com/sveltejs/devalue/commit/dae8153e9d7541b975cc4018138d6cebec6c1199
  • github.com/sveltejs/devalue/releases/tag/v5.9.3
  • github.com/sveltejs/devalue/security/advisories/GHSA-x5rw-q4pp-hg5g

Code Behaviors & Features

Detect and mitigate GHSA-x5rw-q4pp-hg5g with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.8.0 before 5.9.3

Fixed versions

  • 5.9.3

Solution

Upgrade to version 5.9.3 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-248: Uncaught Exception
  • CWE-755: Improper Handling of Exceptional Conditions

Source file

npm/devalue/GHSA-x5rw-q4pp-hg5g.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 12 Oct 2026 00:22:25 +0000.