Description
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.
Published: 2026-10-14
Score: 8.5 High
EPSS: 1.0% Low
KEV: No
Impact: Remote Command Execution
Action: Immediate Patch
AI Analysis

Impact

Turnpress through version 0.4.2 contains a command injection flaw that allows an attacker to execute arbitrary shell commands on the host system by supplying a .docx file with a specially crafted filename. The vulnerability arises from the convertDocxToHtml function invoking pandoc via execa with the shell option enabled, which causes shell metacharacters in the file path to be interpreted by the victim’s account during conversion. This weakness is classified as CWE-78 and can lead to full remote code execution in the context of the running application.

Affected Systems

The affected product is Turnpress, a document conversion utility maintained by vendor jinghaihan. The vulnerability exists in all releases up to and including version 0.4.2; no later versions are mentioned in the advisory.

Risk and Exploitability

The CVSS v3.1 score for this vulnerability is 8.5, indicating high severity. The EPSS score is approximately 1.04%, indicating a low but non-zero probability of exploitation, while the high Base score suggests exploitation is feasible in a realistic environment. The vulnerability is not listed in CISA’s KEV catalog, meaning it is not known to be actively exploited at the time of this analysis. Based on the description, the likely attack vector is an attacker controlling the file name of a .docx file that is processed by the Turnpress conversion routine, and it is inferred that a web‑application context where users can upload documents would allow such control. Because the crafted filename is processed by a shell, a local attacker or anyone who can influence the conversion input has the potential to execute arbitrary commands with the privileges of the application process.

Generated by OpenCVE AI on October 15, 2026 at 21:25 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor’s patch or upgrade to a newer Turnpress release where the execa shell option has been removed.
  • If an upgrade is not immediately possible, sanitize incoming .docx file names by stripping shell metacharacters or renaming files before they are passed to convertDocxToHtml.
  • Disable or restrict the convertDocxToHtml functionality for unauthenticated users to limit the opportunity for exploitation.

Generated by OpenCVE AI on October 15, 2026 at 21:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 19 Oct 2026 13:30:00 +0000

Type Values Removed Values Added
First Time appeared Jinghaihan
Jinghaihan turnpress
Vendors & Products Jinghaihan
Jinghaihan turnpress

Wed, 14 Oct 2026 14:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Turnpress through 0.4.2 OS Command Injection via Crafted .docx File Names
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Jinghaihan Turnpress
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-14T18:20:08.036Z

Reserved: 2026-10-14T13:07:35.737Z

Link: CVE-2026-110647

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-14T15:17:18.373

Modified: 2026-10-15T14:47:05.720

Link: CVE-2026-110647

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T13:08:08Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')