Intel

AIKIDO-2026-679472

buildebooks is vulnerable to Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

CVE-2026-110637Published Oct 30, 2026
October 30, 2026

75

CVE Score

High

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the buildebooks library to the patch version.

Who does this affect?

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.

Versions

0.1.2 - 0.2.1

Fixed in 0.2.2

Background info

buildebooks is vulnerable to Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in versions 0.1.2 - 0.2.1.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea