Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. devalue
  4. ›
  5. GHSA-wf3x-273g-mvxv

GHSA-wf3x-273g-mvxv: devalue: Sparse arrays emitted by uneval cause eager allocation when evaluated

October 1, 2026

Evaluating legitimate uneval output for a sparse array can allocate memory proportional to its declared length. A tiny serialized value can therefore cause large memory allocation in a consuming browser/runtime. This occurs during evaluation of generated code, not in default parse sparse-array construction.

You would only be affected by this if you were serializing very large sparse arrays and then evaluating the results. In the general use case for uneval of sending data to the client, the worst that could happen is the browser tab running out of memory.

References

  • github.com/advisories/GHSA-wf3x-273g-mvxv
  • github.com/sveltejs/devalue/commit/6861dbbb7e548849e48bce718e88747a298f7250
  • github.com/sveltejs/devalue/releases/tag/v5.9.3
  • github.com/sveltejs/devalue/security/advisories/GHSA-wf3x-273g-mvxv

Code Behaviors & Features

Detect and mitigate GHSA-wf3x-273g-mvxv 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 1.0.0 before 5.9.3

Fixed versions

  • 5.9.3

Solution

Upgrade to version 5.9.3 or above.

Impact 3.1 LOW

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

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-789: Memory Allocation with Excessive Size Value

Source file

npm/devalue/GHSA-wf3x-273g-mvxv.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Mon, 12 Oct 2026 00:21:58 +0000.