| Package | Affected versions | Patched versions |
|---|---|---|
| codeceptjs | = 3.7.3 | |
| codeceptjs | ≥ 3.5.0, < 3.7.5 | 3.7.5 |
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.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free