Skip to content

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

LowCVSS 1.7
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
npm devalue(npm) <= 5.6.2 after 5.6.2 Fixed

Affected products

ProductAffected versionsFixed in
npm devalue(npm) <= 5.6.2 No fix listed

References