{"id":"CVE-2026-126042","kind":"vulnerability","aliases":["CVE-2026-126042"],"related":[],"title":"VNote: shared notebook task lets attackers run OS commands","description":"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.","summary":"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.","severity":"high","cvss":7.3,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["desktop","markdown","package","vnote"],"not_affected_if":["no-tasks-used","own-notes-only","version-4.12.0-or-later"],"how_to_check":"- Check the installed VNote version; versions 3.11.0 up to but not including 4.12.0 are affected.\n- Review whether any Tasks in VNote reference `${bufferName}` or `${selectedText}`.","fix":"- VNote: move to `4.12.0` or later.","status":"open","published_at":"2026-11-10T17:17:31+00:00","first_seen_at":"2026-11-10T17:22:41+00:00","triaged_at":"2026-11-10T17:23:59+00:00","updated_at":"2026-11-10T17:23:59+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-10T17:23:59Z","model":"claude-haiku-5-5","output":{"fix":"- VNote: move to `4.12.0` or later.","reach":"local","title":"VNote: shared notebook task lets attackers run OS commands","impact":"high","summary":"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.","audience":"everyone","category":"package","nicknames":[],"who_cares":["vnote","desktop","markdown"],"confidence":0.8,"fix_status":"available","needs_auth":"no","worst_case":"Commands run as the victim on their own computer","analyst_note":"","how_to_check":"- Check the installed VNote version; versions 3.11.0 up to but not including 4.12.0 are affected.\n- Review whether any Tasks in VNote reference `${bufferName}` or `${selectedText}`.","plain_action":"Update VNote to version 4.12.0 or later, and do not run tasks from notebooks you did not write.","product_name":"","needs_analyst":false,"not_affected_if":["version-4.12.0-or-later","no-tasks-used","own-notes-only"],"who_is_affected":"Anyone running VNote from 3.11.0 before 4.12.0 who opens notebooks from others and runs a Tasks entry that uses the magic variables. The exposure depends on running a task on a note with crafted filename or text; users who only write their own notes and never run shared tasks are less exposed.","user_interaction":"yes","product_ecosystem":"","needs_special_setup":"yes","severity_if_unknown":"high"},"cost_usd":0.000748,"input_tokens":4649,"output_tokens":567,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-126042':12A,15A '-2026':11A,14A '3.11.0':66C '4.12.0':68C 'app':25B 'arbitrari':51B 'attack':6A,95C 'backtick':112C 'buffernam':83C 'command':9A,35B,52B,72C,91C,115C 'contain':69C,100C 'craft':43B 'cve':10A,13A 'desktop':16B,22B 'escap':41B,94C 'execut':114C 'featur':39B,78C 'filenam':28B,104C 'includ':107C 'inject':73C 'let':5A 'magic':79C 'markdown':17B,23B 'metacharact':109C 'note':24B,27B,44B,102C 'notebook':3A,48B,99C 'os':8A,71C 'packag':18B 'referenc':124C 'run':7A,50B,58B,121C 'select':30B 'selectedtext':85C 'share':2A,47B,97C 'shell':34B,90C,108C 'string':92C 'substitut':26B,87C 'task':4A,38B,60B,77C,123C 'text':31B,106C 'use':62B 'variabl':64B,80C,126C 'victim':55B,118C 'vnote':1A,19B,20B,65C 'vulner':74C 'whose':103C 'without':40B,93C","nicknames":[],"mitigations":[],"who_affected":"Anyone running VNote from 3.11.0 before 4.12.0 who opens notebooks from others and runs a Tasks entry that uses the magic variables. The exposure depends on running a task on a note with crafted filename or text; users who only write their own notes and never run shared tasks are less exposed.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"everyone","plain_action":"Update VNote to version 4.12.0 or later, and do not run tasks from notebooks you did not write.","pkeys":[],"ptokens":[],"labels":["desktop","high","markdown","package","vnote"],"campaign_type":null,"search_a":"'-126042':12A,15A '-2026':11A,14A 'attack':6A 'command':9A 'cve':10A,13A 'let':5A 'notebook':3A 'os':8A 'run':7A 'share':2A 'task':4A 'vnote':1A","search_b":"'app':25B 'arbitrari':51B 'command':35B,52B 'craft':43B 'desktop':16B,22B 'escap':41B 'featur':39B 'filenam':28B 'markdown':17B,23B 'note':24B,27B,44B 'notebook':48B 'packag':18B 'run':50B,58B 'select':30B 'share':47B 'shell':34B 'substitut':26B 'task':38B,60B 'text':31B 'use':62B 'variabl':64B 'victim':55B 'vnote':19B,20B 'without':40B","search_c":"'3.11.0':66C '4.12.0':68C 'attack':95C 'backtick':112C 'buffernam':83C 'command':72C,91C,115C 'contain':69C,100C 'escap':94C 'execut':114C 'featur':78C 'filenam':104C 'includ':107C 'inject':73C 'magic':79C 'metacharact':109C 'note':102C 'notebook':99C 'os':71C 'referenc':124C 'run':121C 'selectedtext':85C 'share':97C 'shell':90C,108C 'string':92C 'substitut':87C 'task':77C,123C 'text':106C 'variabl':80C,126C 'victim':118C 'vnote':65C 'vulner':74C 'whose':103C 'without':93C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-10T17:17:31+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-126042","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126042","severity":null,"published_at":"2026-11-10T17:17:31+00:00","modified_at":"2026-11-10T17:17:31+00:00","first_seen_at":"2026-11-10T17:22:41+00:00","fetched_at":"2026-11-10T17:22:41+00:00","note":null}],"documents":[{"id":116509,"url":"https://github.com/vnotex/vnote/commit/0f5edd837d233a929d2a514a0e718d5d19c93918","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":116510,"url":"https://github.com/vnotex/vnote/releases/tag/v4.12.0","title":"Release notes: github.com","kind":"release","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release notes: github.com"},{"id":116511,"url":"https://www.vulncheck.com/advisories/vnote-3.11.0-before-4.12.0-os-command-injection-via-tasks-magic-variables","title":"Third-party advisory: www.vulncheck.com","kind":"advisory","source":"nvd","publisher":"research","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Third-party advisory: www.vulncheck.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}