launch-editor: `fs.existsSync()` existence check can be bypassed on Windows
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| vitejs | launch-editor | affected |
|
||||||||||||||||||
| vitejs | vite | affected |
|
||||||||||||||||||
| vitejs | vite-plus | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Vitejs | Launch-editor |
|
||||||||||||||||||||||||
| Vitejs | Vite |
|
||||||||||||||||||||||||
| Vitejs | Vite-plus |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-587h-7wmj-h5pm | launch-editor: `fs.existsSync()` existence check can be bypassed on Windows |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: 1.7% (1.694% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Weaknesses | CWE-78 | |
| References |
| |
| Metrics |
threat_severity
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Vitejs
Vitejs launch-editor Vitejs vite Vitejs vite-plus |
|
| Vendors & Products |
Vitejs
Vitejs launch-editor Vitejs vite Vitejs vite-plus |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | launch-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. | |
| Title | launch-editor: `fs.existsSync()` existence check can be bypassed on Windows | |
| Weaknesses | CWE-77 | |
| References |
| |
| Metrics |
cvssV4_0
|