GHSA-34w8-mcwr-vg29CriticalCVSS 9.8

CodeceptJS's incomprehensive sanitation can lead to Command Injection

Published
September 8, 2025
Last Modified
September 23, 2025

🔗 CVE IDs covered (1)

📋 Description

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.

🎯 Affected products1

  • npm/codeceptjs:>= 3.5.0, < 3.7.5

🔗 References (6)