GHSA-34w8-mcwr-vg29
CodeceptJS's incomprehensive sanitation can lead to Command Injection
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | codeceptjs | >= 3.5.0, < 3.7.5 | 3.7.5 |
Details
As written in the advisory (Markdown source, shown as plain text).
CodeceptJS versions 3.5.0 through 3.7.5-beta.18 contain a command injection vulnerability in the emptyFolder function (lib/utils.js). The execSync command directly concatenates the user-controlled directoryPath parameter without sanitization or escaping, allowing attackers to execute arbitrary commands.
References
External links from the advisory. They lead to third-party sites.