Vulnerability
CVE-2026-112944
launch-editor allows users to open files with line numbers in editor from Node.js. Prior to 2.14.2, when an attacker can create a filesystem entry beginning with plus or minus in the working directory, an affected editor is selected, and the path can remain relative or is converted to a relative WSL path, launchEditor forwards the path without forcing it to be interpreted as a positional filename. Editor option parsing then treats the attacker-controlled filename as a command-line flag, which can cause unintended file overwrite or arbitrary command execution by the selected editor. The affected editors are Vim and gVim, MacVim, Emacs and Emacsclient, and Notepad++ when a plugin exposes dangerous operations; WSL path conversion keeps Vite and newer middleware callers exposed. This issue is fixed in version 2.14.2.
83 advisories report this vulnerability, across 3 ecosystems.
Advisories
- CGA-2cp4-27vp-9g65
- CGA-2hx8-6h2x-qmrr
- CGA-342j-4fqp-f7rj
- CGA-34jg-7jvx-hjg9
- CGA-3fqc-g589-5w54
- CGA-3g7r-65x2-c3px
- CGA-3wr4-g9px-5wqq
- CGA-496j-727r-h6w5
- CGA-4j8r-9w6j-j97r
- CGA-4qfm-wg9f-h9mx
- CGA-543p-6gp2-f292
- CGA-5gwf-qrff-p75m
- CGA-5mc7-2xm6-g9x7
- CGA-5qq9-r4rc-hx4q
- CGA-5rvf-qfmc-fpm6
- CGA-63gq-5wrv-jmc5
- CGA-6c9r-vhpm-8frj
- CGA-6m3q-gp76-xwcm
- CGA-6m6r-gcj9-vp8r
- CGA-6mcp-w34x-3w65
- CGA-6ppq-xrp8-cv4h
- CGA-75mx-59cw-qgx4
- CGA-7f83-grp8-366j
- CGA-7qvm-rp3x-8hr4
- CGA-8gr2-6659-86g5
- CGA-8p78-9fpw-8gp4
- CGA-8x64-gcg3-949j
- CGA-95gw-7jm5-w8x2
- CGA-9ppx-mp8m-2jv7
- CGA-c5q5-cmhq-q3mf
- CGA-c8jg-27pj-mq2j
- CGA-ccg5-9743-mjvq
- CGA-ccxq-p2pw-8whx
- CGA-cghp-cfq2-93x6
- CGA-f25p-rhhm-f88f
- CGA-f3wx-p2r8-327g
- CGA-fg38-m896-c5fj
- CGA-fhr8-ph36-qm5g
- CGA-fp86-jm3w-8jxr
- CGA-fxcf-5v7p-c2cr
- CGA-g2h7-9wqr-xr7w
- CGA-gcqw-gwwh-cpp4
- CGA-gjrg-f4j2-wrcv
- CGA-gm5v-j84r-3rvv
- CGA-h8gx-89rr-j2m3
- CGA-hg56-xp6r-j95q
- CGA-hj2g-vqqg-pmf2
- CGA-hvq5-rw4v-5fp3
- CGA-j2c2-gjg9-fm9q
- CGA-j2x4-3wwx-3g68
- CGA-j5r2-5gc3-xwx7
- CGA-jfgq-c49v-rhxr
- CGA-mm9r-2r2g-f84f
- CGA-mqph-vjx7-3p4j
- CGA-mww3-333m-2234
- CGA-p3gc-3w5f-6qfg
- CGA-pf3r-23h4-ppf5
- CGA-ph5r-9f47-3xcw
- CGA-pmvr-r65w-988r
- CGA-pw3c-93ch-5w2w
- CGA-q22m-qv7w-r5gv
- CGA-q25r-49f9-hmm7
- CGA-q98q-p2wj-wp9j
- CGA-rf2g-vmwg-9wfg
- CGA-rm5m-g8fw-549m
- CGA-rmf8-v4rj-cwrp
- CGA-rpfh-pm72-8prf
- CGA-rw23-qv68-4qgx
- CGA-v28m-4xhg-c9fc
- CGA-v4rm-8x2w-88g3
- CGA-v4w8-99jh-p876
- CGA-v7xr-898r-7jjp
- CGA-vc6x-hvmc-4pg5
- CGA-vm5j-8xhg-rj6h
- CGA-w68h-5f59-5h8g
- CGA-w7jv-9vj3-hxpf
- CGA-whff-9q9g-fh3j
- CGA-wrg4-h573-34g7
- CGA-wvh7-pxxv-jvr8
- CGA-x45w-g23c-3fjf
- CGA-xrgx-5p26-36r2
- CGA-xxx3-xqr4-j2hq
-
GHSA-r825-w8mm-5pxw
launch-editor: Editor CLI flag misinterpretation causing arbitrary command execution for some editors