Intel

AIKIDO-2024-10514

superjson is vulnerable to Denial of Service (DoS)

Denial of Service (DoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Dec 6, 2024

35

Low Risk

This Affects:

JSsuperjson
1.2.0 - 2.2.1
Fixed in 2.2.2
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to a Denial of Service (DoS) due to the lack of bounds checking on n when traversing a Map to retrieve the nth item. Without validation, an excessively large n can exhaust the iterator, leading to excessive resource consumption. Since this function is used in multiple locations, malicious actors can exploit it to disrupt system performance.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

superjson is vulnerable to Denial of Service (DoS) in versions 1.2.0 - 2.2.1.

How to fix this

Upgrade the superjson library to the patch version.