Intel

AIKIDO-2026-10017

cjs-module-lexer is vulnerable to Improper Control of Generation of Code ('Code Injection')

Improper Control of Generation of Code ('Code Injection') Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jan 12, 2026

55

Medium Risk

This Affects:

JScjs-module-lexer
0.4.3 - 2.1.0
Fixed in 2.2.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Arbitrary Code Execution via Insecure Input Deserialization due to the decode function using the eval() function on potential user-supplied input (str) without proper sanitization or validation. An attacker can exploit this by injecting malicious JavaScript code as the str argument, which will be directly evaluated and executed within the application's context, potentially leading to system compromise, data theft, or other malicious activities.

Who does this affect?

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

Background info

cjs-module-lexer is vulnerable to Improper Control of Generation of Code ('Code Injection') in versions 0.4.3 - 2.1.0.

How to fix this

Upgrade the cjs-module-lexer library to the patch version.