---
id: "CVE-2026-126042"
page: "https://infrastack.ai/live/CVE-2026-126042"
kind: "vulnerability"
aliases: ["CVE-2026-126042"]
title: "VNote: shared notebook task lets attackers run OS commands"
severity: "high"
cvss: 7.3
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["desktop", "markdown", "package", "vnote"]
not_affected_if: ["no-tasks-used", "own-notes-only", "version-4.12.0-or-later"]
published_at: "2026-11-10T17:17:31+00:00"
first_seen_at: "2026-11-10T17:22:41+00:00"
updated_at: "2026-11-10T17:23:59+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126042", "first_seen_at": "2026-11-10T17:22:41+00:00"}]
exploit_sources: []
---

# VNote: shared notebook task lets attackers run OS commands

Link for people: https://infrastack.ai/live/CVE-2026-126042 (this .md is for agents)

VNote, a desktop Markdown note app, substitutes note filenames and selected text into a shell command in its Tasks feature without escaping. A crafted note in a shared notebook can run arbitrary commands as the victim when they run a task that uses those variables.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed VNote version; versions 3.11.0 up to but not including 4.12.0 are affected.
- Review whether any Tasks in VNote reference `${bufferName}` or `${selectedText}`.

## Fix

- VNote: move to `4.12.0` or later.

## Timeline

- 2026-11-10T17:22:41+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-126042

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/vnote-3.11.0-before-4.12.0-os-command-injection-via-tasks-magic-variables
- [fix] Patch: github.com https://github.com/vnotex/vnote/commit/0f5edd837d233a929d2a514a0e718d5d19c93918
- [fix] Release notes: github.com https://github.com/vnotex/vnote/releases/tag/v4.12.0

## From the sources

VNote 3.11.0 before 4.12.0 contains an OS command injection vulnerability in its Tasks feature: magic variables such as ${bufferName} and ${selectedText} are substituted into a shell command string without escaping. Attackers can share a notebook containing a note whose filename or text includes shell metacharacters such as $(...), backticks, ; or |, executing commands as the victim when they run a task referencing these variables.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
