GitHub Advisoryadvisory · npm

GHSA-33hq-fvwr-56pm devalue affected by CPU and memory amplification from sparse arrays

LOW Published 2026-02-19 Modified 2026-02-19 Official page ↗
Ecosystem
npm
Packages
devalue
Severity
Low
CVSS vector
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U
Weaknesses
CWE-770
Reviewed
2026-02-19

Affected packages

• npm devalue: < 5.6.3 → fixed in 5.6.3

Description

Under certain circumstances, serializing sparse arrays using `uneval` or `stringify` could cause CPU and/or memory exhaustion. When this occurs on the server, it results in a DoS. This is extremely difficult to take advantage of in practice, as an attacker would have to manage to create a sparse array on the server — which is impossible in every mainstream wire format — and then that sparse array would have to be run through `uneval` or `stringify`.

Related

Weakness · CWE (1)

  • CWE-770 Allocation of Resources Without Limits or Throttling weakness

References