Intel

AIKIDO-2024-10093

picocolors is vulnerable to Uncontrolled Recursion

Uncontrolled Recursion Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published May 14, 2024

15

Low Risk

This Affects:

JSpicocolors
0.1.0 - 1.0.0
Fixed in 1.0.1
Are you affected? Scan for Free

TL;DR

Affected versions of the picocolors library are vulnerable to uncontrolled recursion. When very long inputs are passed into the replaceClose function, the library fails to properly control the amount of recursion, eventually causing a RangeError: Maximum call stack size exceeded stack overflow error.

Who does this affect?

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

Background info

picocolors is vulnerable to Uncontrolled Recursion in versions 0.1.0 - 1.0.0.

How to fix this

Upgrade the picocolors library to the patch version.