Server side template injection In codeceptjs
Description
CodeceptJS's incomprehensive sanitation can lead to Command Injection 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.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Component | Affected version | Patched versions |
|---|---|---|---|
npm | 3.7.5 |
Aliases
1. 2. 3. 4.
References
1. 2. 3. 4.