Arbitrary Command Injection Affecting codeceptjs package, versions *


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.96% (76th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-CODECEPTJS-12670804
  • published17 Sept 2025
  • disclosed8 Sept 2025
  • creditDremig

Introduced: 8 Sep 2025

NewCVE-2025-57285  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

codeceptjs is a Supercharged End 2 End Testing Framework for NodeJS

Affected versions of this package are vulnerable to Arbitrary Command Injection via the emptyFolder function. An attacker can execute arbitrary system commands by supplying crafted input to the directoryPath parameter.

CVSS Base Scores

version 4.0
version 3.1