Description
nodejs-whisper through 0.3.1 contains an OS command injection vulnerability in convertToWavType() that allows attackers to execute commands by supplying crafted audio file paths. Attackers can provide file names containing $() command substitution or closing quotes, which are interpolated into an ffmpeg command run via shelljs exec(), executing OS commands with Node.js process privileges.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ChetanXpro | nodejs-whisper | ≤ 0.3.1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | nodejs-whisper | < 0.4.0 | 0.4.0 | GHSA-2f48-3555-fpx6 |
References
- https://github.com/ChetanXpro/nodejs-whisper/pull/259 patch issue-tracking
- https://github.com/ChetanXpro/nodejs-whisper/blob/v0.3.1/src/utils.ts#L58-L59 technical-description
- https://github.com/ChetanXpro/nodejs-whisper/blob/v0.3.1/src/utils.ts#L76-L77 technical-description
- VulnCheck Advisory: nodejs-whisper through 0.3.1 OS Command Injection via convertToWavType third-party-advisory