GHSA-hx4r-w6wj-j8fg: devalue Residual Sparse-array CPU Amplification Vulnerability

MODERATE
CWE-400 CWE-407
Published
Advisory Summary

GHSA-hx4r-w6wj-j8fg is a MODERATE residual sparse-array cpu amplification vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting devalue libraries in the npm ecosystem. The issue involves residual sparse-array cpu amplification in uneval. Remediation is available by upgrading affected packages to version 5.9.3.

GHSA-hx4r-w6wj-j8fg at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-hx4r-w6wj-j8fg
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product devalue
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-hx4r-w6wj-j8fg

To remediate this vulnerability, upgrade all affected devalue dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

devalue fixed: 5.9.3
npm install devalue@5.9.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls devalue

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-hx4r-w6wj-j8fg, inspect your project dependencies using npm:

npm ls devalue

Analyze the terminal output to locate any version of devalue in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.9.3), your application is affected.

Note: The npm ls devalue command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In devalue, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

`uneval` performs synchronous work proportional to a sparse array's declared length. An application that passes attacker-influenced sparse values to `uneval` can suffer event-loop blocking. Since attacker-controlled creation of sparse arrays is so difficult, this vulnerability is very difficult to exploit.

GHSA-hx4r-w6wj-j8fg Affected devalue Versions

1 component(s)
Fixed Versions:
5.9.3
Product / Package Ecosystem Affected Versions Fixed Version
devalue
npm
< 5.9.3
5.9.3

References

Frequently Asked Questions

What is GHSA-hx4r-w6wj-j8fg?
GHSA-hx4r-w6wj-j8fg is a security vulnerability in devalue involving Residual sparse-array CPU amplification in uneval under CWE-400: Uncontrolled Resource Consumption.
Which devalue versions are affected?
Affected versions include releases prior to 5.9.3 across affected packages: devalue.
What version fixes GHSA-hx4r-w6wj-j8fg?
Upgrading to 5.9.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is devalue affected?
Yes, devalue is affected in releases prior to 5.9.3. Upgrade your dependency to 5.9.3 or later.
What CWE is associated with GHSA-hx4r-w6wj-j8fg?
GHSA-hx4r-w6wj-j8fg is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check npm dependencies for GHSA-hx4r-w6wj-j8fg?
Run the dependency tree command: 'npm ls devalue'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-hx4r-w6wj-j8fg",
  "modified" : "2026-10-01T15:17:42Z",
  "published" : "2026-10-01T15:17:42Z",
  "aliases" : [ ],
  "summary" : "devalue: Residual sparse-array CPU amplification in uneval",
  "details" : "`uneval` performs synchronous work proportional to a sparse array's declared length. An application that passes attacker-influenced sparse values to `uneval` can suffer event-loop blocking. Since attacker-controlled creation of sparse arrays is so difficult, this vulnerability is very difficult to exploit.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "devalue"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.9.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 5.9.2"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/sveltejs/devalue/security/advisories/GHSA-hx4r-w6wj-j8fg"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sveltejs/devalue/commit/6861dbbb7e548849e48bce718e88747a298f7250"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sveltejs/devalue"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sveltejs/devalue/releases/tag/v5.9.3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400", "CWE-407" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-01T15:17:42Z",
    "nvd_published_at" : null
  }
}