Intel

AIKIDO-2024-10093

picocolors is vulnerable to Uncontrolled Recursion

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

15

CVE Score

Low

Uncontrolled Recursion

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.

How do I fix this?

Upgrade the picocolors library to the patch version.

Who does this affect?

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

Package

Versions

0.1.0 - 1.0.0

Fixed in 1.0.1

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea