AploSec / Disclosures / CVE-2026-110647
Turnpress through 0.4.2 OS Command Injection via Crafted .docx File Names
CVE-2026-110647 · published 2026-10-14
Summary
Turnpress through 0.4.2 contains an OS command injection vulnerability that allows attackers to execute shell commands by supplying .docx files with crafted names. The convertDocxToHtml function in src/converter.ts invokes pandoc through execa with shell:true, so shell metacharacters in the --docx path run with the victim's privileges during convert or create.
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
No fixed release was published at disclosure. Don't pass untrusted file names or strings to the affected functions, or apply the patch from the fix pull request.
References
- VulnCheck advisoryhttps://www.vulncheck.com/advisories/turnpress-through-0.4.2-os-command-injection-via-crafted-docx-file-names
- Fix pull requesthttps://github.com/jinghaihan/turnpress/pull/2
- Vulnerable codehttps://github.com/jinghaihan/turnpress/blob/v0.4.2/src/converter.ts#L33-L61
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-110647
- Package
- turnpress
- Ecosystem
- npm
- Weekly downloads
- 12
- Affected
- <= 0.4.2
- Fixed
- None
- Weakness
- CWE-78
- CNA
- VulnCheck
- Credit
- Zachariah Mithani