VDB
Sign up
LOW1.7

GHSA-33hq-fvwr-56pm

devalue affected by CPU and memory amplification from sparse arrays

Quick fix

GHSA-33hq-fvwr-56pm — devalue: upgrade to the fixed version with the command below.

npm install devalue@5.6.3

Details

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`.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/devalue
Introduced in: 0Fixed in: 5.6.3
Fixnpm install devalue@5.6.3

References