CVE-2026-112942
HIGH 7.5launch-editor allows users to open files with line numbers in editor from Node.js. Prior to 2.14.2, launch-editor-middleware processes an attacker-controlled Windows file argument where the file argument ends in a parent-directory component plus a line-and-column suffix: the path is resolved while the suffix is still present, and launch-editor removes the suffix before its existsSync check, leaving the existing parent directory for existsSync and allowing the attacker-controlled file argument to pass filename existence validation without requiring the malicious filename to exist. The bypass can lead to OS command injection when combined with the separately described Windows percent-expansion flaw. This issue is fixed in version 2.14.2.
Severe if exploited (CVSS 7.5), but no known exploitation and low modeled probability. Patch on a normal cadence.
Exploitation likelihood
1.3%chance of exploitation in 30 days · 71st percentile
Impact if exploited
7.5CVSS 4.0 · HIGH
- ConfidentialityHigh
- IntegrityHigh
- AvailabilityHigh
What an attacker needs
- ✓Access: Reachable over the network — no local access needed
- ✓Privileges: No account or privileges required
- ⚠User interaction: Requires active user interaction
- ✓Complexity: No special conditions — reliably repeatable
- ⚠Requirements: Specific conditions must be present
✓ lowers the bar for an attacker · ⚠ raises it
Proof of concept
No public PoC is currently catalogued.
Search for new PoCs
Search GitHub now — results may be empty or unverified.
Tracked sources are checked daily for recent CVEs, including PoCs published after the original disclosure. A later release appears after a tracked source lists it and a refresh succeeds.
Data snapshot:
Weakness (CWE)
- CWE-77: : Improper Neutralization of Special Elements used in a Command ('Command Injection')
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
References and research data (JSON)
Packages and version ranges
Each advisory describes its own package and affected ranges. A boundary applies to that range; it is not a universal upgrade recommendation.
launch-editor npm
pkg:npm/launch-editor
SEMVER range- All earlier versions (introduced 0)
- Fixed boundary (excluded): 2.14.2
GitHub Advisory Database · GHSA-587h-7wmj-h5pm · Updated 2026-10-20T20:00:04.608979840ZAdditional upstream package constraints
{ "database": { "last_known_affected_version_range": "<= 2.14.1", "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-587h-7wmj-h5pm/GHSA-587h-7wmj-h5pm.json" } }vite npm
pkg:npm/vite
SEMVER range- Introduced version (included): 8.3.0
- Fixed boundary (excluded): 8.3.3
GitHub Advisory Database · GHSA-587h-7wmj-h5pm · Updated 2026-10-20T20:00:04.608979840ZAdditional upstream package constraints
{ "database": { "last_known_affected_version_range": "<= 8.3.2", "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-587h-7wmj-h5pm/GHSA-587h-7wmj-h5pm.json" } }vite npm
pkg:npm/vite
SEMVER range- Introduced version (included): 8.2.0
- Fixed boundary (excluded): 8.2.4
GitHub Advisory Database · GHSA-587h-7wmj-h5pm · Updated 2026-10-20T20:00:04.608979840ZAdditional upstream package constraints
{ "database": { "last_known_affected_version_range": "<= 8.2.3", "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-587h-7wmj-h5pm/GHSA-587h-7wmj-h5pm.json" } }vite npm
pkg:npm/vite
SEMVER range- Introduced version (included): 8.0.0
- Fixed boundary (excluded): 8.1.6
GitHub Advisory Database · GHSA-587h-7wmj-h5pm · Updated 2026-10-20T20:00:04.608979840ZAdditional upstream package constraints
{ "database": { "last_known_affected_version_range": "<= 8.1.5", "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-587h-7wmj-h5pm/GHSA-587h-7wmj-h5pm.json" } }vite npm
pkg:npm/vite
SEMVER range- Introduced version (included): 7.0.0
- Fixed boundary (excluded): 7.3.7
GitHub Advisory Database · GHSA-587h-7wmj-h5pm · Updated 2026-10-20T20:00:04.608979840ZAdditional upstream package constraints
{ "database": { "last_known_affected_version_range": "<= 7.3.6", "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-587h-7wmj-h5pm/GHSA-587h-7wmj-h5pm.json" } }vite npm
pkg:npm/vite
SEMVER range- All earlier versions (introduced 0)
- Fixed boundary (excluded): 6.4.4
GitHub Advisory Database · GHSA-587h-7wmj-h5pm · Updated 2026-10-20T20:00:04.608979840ZAdditional upstream package constraints
{ "database": { "last_known_affected_version_range": "<= 6.4.3", "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-587h-7wmj-h5pm/GHSA-587h-7wmj-h5pm.json" } }vite-plus npm
pkg:npm/vite-plus
SEMVER range- All earlier versions (introduced 0)
- Fixed boundary (excluded): 1.1.0
GitHub Advisory Database · GHSA-587h-7wmj-h5pm · Updated 2026-10-20T20:00:04.608979840ZAdditional upstream package constraints
{ "database": { "last_known_affected_version_range": "<= 1.0.0", "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-587h-7wmj-h5pm/GHSA-587h-7wmj-h5pm.json" } }
Vendor product assessments
grafana13.1.src as a component of Red Hat Hardened Images · known not affected
Vendor assessment for this product only.
Reason: component not present
pkg:rpm/redhat/[email protected]?arch=src
Red Hat · CVE-2026-112942 · Updated 2026-10-20T21:30:53+00:00grafana13.2.src as a component of Red Hat Hardened Images · known not affected
Vendor assessment for this product only.
Reason: component not present
pkg:rpm/redhat/[email protected]?arch=src
Red Hat · CVE-2026-112942 · Updated 2026-10-20T21:30:53+00:00prometheus3.13.src as a component of Red Hat Hardened Images · known not affected
Vendor assessment for this product only.
Reason: component not present
pkg:rpm/redhat/[email protected]?arch=src
Red Hat · CVE-2026-112942 · Updated 2026-10-20T21:30:53+00:00
All CVSS metrics
- HIGH 7.5 v4.0 · CNA Primary
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - HIGH 7.5 v4.0 · NVD Secondary
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/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
References
Advisories
- https://osv.dev/vulnerability/GHSA-587h-7wmj-h5pm GitHub Advisory Database · GHSA-587h-7wmj-h5pm
GitHub Advisory Database · GHSA-587h-7wmj-h5pm · Updated 2026-10-20T20:00:04.608979840Z - https://nvd.nist.gov/vuln/detail/CVE-2026-112942 GitHub Advisory Database · GHSA-587h-7wmj-h5pm
GitHub Advisory Database · GHSA-587h-7wmj-h5pm · Updated 2026-10-20T20:00:04.608979840Z
Red Hat · CVE-2026-112942 · Updated 2026-10-20T21:30:53+00:00 - https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-112942.json Red Hat · CVE-2026-112942 · Updated 2026-10-20T21:30:53+00:00
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-105035 EUVD · EUVD-2026-105035
Technical & other
- https://github.com/vitejs/launch-editor/security/advisories/GHSA-587h-7wmj-h5pm CVE record · GitHub_M · Updated 2026-10-20T14:48:06.676Z
NVD · CVE-2026-112942 · Updated 2026-10-21T16:17:15.207
GitHub Advisory Database · GHSA-587h-7wmj-h5pm
GitHub Advisory Database · GHSA-587h-7wmj-h5pm · Updated 2026-10-20T20:00:04.608979840Z
Red Hat · CVE-2026-112942 · Updated 2026-10-20T21:30:53+00:00 - https://github.com/vitejs/launch-editor/commit/f13cd835d4b8e860b1d4d080ad8a490cc2463679 CVE record · GitHub_M · Updated 2026-10-20T14:48:06.676Z
NVD · CVE-2026-112942 · Updated 2026-10-21T16:17:15.207
GitHub Advisory Database · GHSA-587h-7wmj-h5pm
GitHub Advisory Database · GHSA-587h-7wmj-h5pm · Updated 2026-10-20T20:00:04.608979840Z
Red Hat · CVE-2026-112942 · Updated 2026-10-20T21:30:53+00:00 - https://github.com/vitejs/launch-editor/releases/tag/v2.14.2 CVE record · GitHub_M · Updated 2026-10-20T14:48:06.676Z
NVD · CVE-2026-112942 · Updated 2026-10-21T16:17:15.207
GitHub Advisory Database · GHSA-587h-7wmj-h5pm
GitHub Advisory Database · GHSA-587h-7wmj-h5pm · Updated 2026-10-20T20:00:04.608979840Z
Red Hat · CVE-2026-112942 · Updated 2026-10-20T21:30:53+00:00 - https://github.com/vitejs/launch-editor GitHub Advisory Database · GHSA-587h-7wmj-h5pm
GitHub Advisory Database · GHSA-587h-7wmj-h5pm · Updated 2026-10-20T20:00:04.608979840Z - https://access.redhat.com/security/cve/CVE-2026-112942 Red Hat · CVE-2026-112942 · Updated 2026-10-20T21:30:53+00:00
- https://bugzilla.redhat.com/show_bug.cgi?id=2556237 Red Hat · CVE-2026-112942 · Updated 2026-10-20T21:30:53+00:00
- https://www.cve.org/CVERecord?id=CVE-2026-112942 Red Hat · CVE-2026-112942 · Updated 2026-10-20T21:30:53+00:00