GHSA-wf3x-273g-mvxv: devalue Sparse Arrays Emitted By Uneval Vulnerability
LOWGHSA-wf3x-273g-mvxv is a LOW sparse arrays emitted by uneval vulnerability (CWE-789: Memory Allocation with Excessive Size Value) affecting devalue libraries in the npm ecosystem. The issue involves sparse arrays emitted by uneval cause eager allocation when evaluated. Remediation is available by upgrading affected packages to version 5.9.3.
GHSA-wf3x-273g-mvxv at a Glance
How to Fix GHSA-wf3x-273g-mvxv
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.
npm install devalue@5.9.3
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-wf3x-273g-mvxv, 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-789: Memory Allocation with Excessive Size Value, where the product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated. 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
GHSA-wf3x-273g-mvxv Affected devalue Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
devalue
|
npm |
≥ 1.0.0
< 5.9.3
|
5.9.3
|
References
Frequently Asked Questions
What is GHSA-wf3x-273g-mvxv?
Which devalue versions are affected?
What version fixes GHSA-wf3x-273g-mvxv?
Is devalue affected?
What CWE is associated with GHSA-wf3x-273g-mvxv?
How can I check npm dependencies for GHSA-wf3x-273g-mvxv?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wf3x-273g-mvxv",
"modified" : "2026-10-01T15:17:13Z",
"published" : "2026-10-01T15:17:13Z",
"aliases" : [ ],
"summary" : "devalue: Sparse arrays emitted by uneval cause eager allocation when evaluated",
"details" : "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.\n\nYou 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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:N/SA:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "devalue"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.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-wf3x-273g-mvxv"
}, {
"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-789" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-10-01T15:17:13Z",
"nvd_published_at" : null
}
}