{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.11.0"
                  },
                  {
                    "fixed": "4.12.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "0f5edd837d233a929d2a514a0e718d5d19c93918"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v4.12.0",
                "range": [
                  {
                    "fixed": "3d4c806c29de7a01416da5352d22bfe21bc6a128"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "126091c080fb5685f7cdc4e4e05799d4482826e8"
            },
            {
              "fixed": "3d4c806c29de7a01416da5352d22bfe21bc6a128"
            },
            {
              "fixed": "0f5edd837d233a929d2a514a0e718d5d19c93918"
            }
          ],
          "repo": "https://github.com/vnotex/vnote",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-78"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126042.json"
  },
  "details": "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.",
  "id": "CVE-2026-126042",
  "modified": "2026-11-12T02:30:40.679731834Z",
  "published": "2026-11-10T16:37:43.934Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126042.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/vnotex/vnote/releases/tag/v4.12.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126042"
    },
    {
      "type": "ADVISORY",
      "url": "https://r3vpwnx.space/research/vnote-tasks-cmdinjection/"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/vnote-3.11.0-before-4.12.0-os-command-injection-via-tasks-magic-variables"
    },
    {
      "type": "FIX",
      "url": "https://github.com/vnotex/vnote/commit/0f5edd837d233a929d2a514a0e718d5d19c93918"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/vnotex/vnote"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/vnotex/vnote/blob/551dfd86b73ce6d93e5403296b069219cb668dc2/src/core/services/shellexecution.cpp#L50-L56"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/vnotex/vnote/blob/551dfd86b73ce6d93e5403296b069219cb668dc2/src/core/services/shellexecution.cpp#L8-L24"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "VNote 3.11.0 before 4.12.0 OS Command Injection via Tasks Magic Variables"
}