The vulnerability exists in the emptyFolder function within lib/utils.js. The function takes a directoryPath as input and uses it to construct a shell command with rm -rf. The user-provided directoryPath is not sanitized or escaped, allowing for the injection of arbitrary commands. The provided PoC demonstrates this by passing a malicious path in the output configuration, which is then used by the emptyFolder function when the emptyOutputFolder option is enabled. The analysis of the lib/utils.js file confirms the presence of the vulnerable code. The function emptyFolder is directly responsible for the command execution and is the primary function that would appear in a runtime profile during exploitation.