AploSec / Disclosures / CVE-2026-110647

High 8.5ReproducedNo fix listedCWE-78npm

Turnpress through 0.4.2 OS Command Injection via Crafted .docx File Names

CVE-2026-110647 · published 2026-10-14

In plain words: this type of bug lets someone run their own commands on the server (command injection). No fixed release is listed yet.

Summary

CVE-2026-110647 affects turnpress (npm) <= 0.4.2: Command injection via Crafted .docx File Names (CWE-78). No fixed release is listed. CVSS 4.0 base score 8.5 (High), assigned by VulnCheck. Published 2026-10-14 by VulnCheck. Credit: Zachariah Mithani.

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

Severity
High 8.5CVSS 4.0, scored by VulnCheck in the CVE record
Package
turnpress
Ecosystem
npm
Affected
<= 0.4.2
Fixed
None
Weakness
CWE-78
CNA
VulnCheck
Credit
Zachariah Mithanifinder