# CVE-2026-110647: Turnpress through 0.4.2 OS Command Injection via Crafted .docx File Names

Source: https://aplosec.si/cve/CVE-2026-110647/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-110647

High 8.5 · Reproduced · No fix listed · CWE-78 · npm

# 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

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/turnpress-through-0.4.2-os-command-injection-via-crafted-docx-file-names](https://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](https://github.com/jinghaihan/turnpress/pull/2)

- [Vulnerable codehttps://github.com/jinghaihan/turnpress/blob/v0.4.2/src/converter.ts#L33-L61](https://github.com/jinghaihan/turnpress/blob/v0.4.2/src/converter.ts#L33-L61)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-110647](https://www.cve.org/CVERecord?id=CVE-2026-110647)

**Severity:** High 8.5 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-110647)

**Package:** turnpress

**Ecosystem:** npm

**Affected:** <= 0.4.2

**Fixed:** None

**Weakness:** CWE-78

**CNA:** VulnCheck

**Credit:** Zachariah Mithani finder
