---
id: CVE-2026-110647
title: >-
  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
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…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-78
published: '2026-10-14'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T19:17:11.143'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-110647'
references:
  - url: >-
      https://github.com/jinghaihan/turnpress/blob/v0.4.2/src/converter.ts#L33-L61
    label: disclosure@vulncheck.com
  - url: 'https://github.com/jinghaihan/turnpress/pull/2'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/turnpress-through-0.4.2-os-command-injection-via-crafted-docx-file-names
    label: disclosure@vulncheck.com
tags:
  - nvd
ingestedAt: '2026-10-14T15:36:14.017Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
