AploSec / Disclosures / CVE-2026-110637
buildebooks before 0.2.2 OS Command Injection via kindlegen EPUB File Name
CVE-2026-110637 · published 2026-10-14
Summary
buildebooks before 0.2.2 contains an OS command injection vulnerability in lib/kindle.js that allows attackers to execute commands by supplying a crafted EPUB file name passed to kindlegen via child_process.exec. Attackers can craft a book project with a malicious front-matter filename or project folder name and kindle: true to execute OS commands as the user running buildebooks.
Evidence
The exploit was run against the published artifact from the registry, not the repository. It created a marker file; a benign input through the same sink in the same session did not.
Remediation
Upgrade buildebooks to 0.2.2 or later.
References
- VulnCheck advisoryhttps://www.vulncheck.com/advisories/buildebooks-before-0.2.2-os-command-injection-via-kindlegen-epub-file-name
- Fix pull requesthttps://github.com/wastemobile/buildebooks/pull/12
- Vulnerable codehttps://github.com/wastemobile/buildebooks/blob/7fc313485447d9359fb38fda3cbc2ed60ce69fe7/lib/kindle.js#L5-L12
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-110637
- Package
- buildebooks
- Ecosystem
- npm
- Weekly downloads
- 6
- Affected
- < 0.2.2
- Fixed
- 0.2.2
- Weakness
- CWE-78
- CNA
- VulnCheck
- Credit
- Zachariah Mithani