buildebooks is vulnerable to Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
75
CVE Score
High
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The module.exports function in lib/kindle.js concatenates 'kindlegen ' with the epubfile argument and passes the string to child_process.exec(). The default build sets epubfile from the EPUB output filename, which comes from the book project folder or front matter name when kindle: true is set, so a shell processes metacharacters in that filename and runs them as operating system commands. The fix calls execFile('kindlegen', [epubfile]) so the filename is an argument and the shell does not process it.
Upgrade the buildebooks library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and build EPUB to Kindle conversions with the kindle output option enabled.
0.1.2 - 0.2.1
Fixed in 0.2.2buildebooks is vulnerable to Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in versions 0.1.2 - 0.2.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.