AploSec / Disclosures / CVE-2026-110647

ReproducedNo fix listedCWE-78npm

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

Package
turnpress
Ecosystem
npm
Weekly downloads
12
Affected
<= 0.4.2
Fixed
None
Weakness
CWE-78
CNA
VulnCheck
Credit
Zachariah Mithani