Intel

AIKIDO-2024-10076

@unocss/extractor-arbitrary-variants is vulnerable to Regular Expression Denial of Service (ReDoS)

Regular Expression Denial of Service (ReDoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published May 2, 2024

50

Medium Risk

This Affects:

JS@unocss/extractor-arbitrary-variants
0.51.0 - 0.58.3
Fixed in 0.58.4
Are you affected? Scan for Free

TL;DR

The affected versions use a regular expression with inefficient, possibly exponential worst-case computational complexity, leading to excessive CPU consumption. This issue occurs at lines 5–7 in packages/extractor-arbitrary-variants/src/index.ts.

Who does this affect?

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

Background info

@unocss/extractor-arbitrary-variants is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 0.51.0 - 0.58.3.

How to fix this

Upgrade the @unocss/extractor-arbitrary-variants library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform