You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is to prevent possible attacks where a crafted filename could be used to execute malicious commands.
Currently launch-editor does not have a check like this. It's hard to exploit because there is an fs.existsSync check but for defense in depth it would be better to not let these kinds of filenames through
The only remaining problem is that this RegExp can't be parsed with our current ESLint setup.
I'll try to fix this issue when I have the time to move away from eslint-plugin-vue-libs and bump the ESLint major version in this repository.
After reading https://stackoverflow.com/q/4094699/2302258, I believe it's not exploitable.
Let me think this validation logic over. It might be better to escape than validate.
Activity
haoqunjiang commentedon Oct 7, 2023
These are basically backports of react/create-react-app#4866 and react/create-react-app#5431
As Unicode character class escape has been supported since Node.js 101, I think we can use the uncompiled version here.
The only remaining problem is that this RegExp can't be parsed with our current ESLint setup.
I'll try to fix this issue when I have the time to move away from
eslint-plugin-vue-libsand bump the ESLint major version in this repository.Footnotes
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Unicode_character_class_escape ↩
haoqunjiang commentedon Jul 15, 2024
After reading https://stackoverflow.com/q/4094699/2302258, I believe it's not exploitable.
Let me think this validation logic over. It might be better to escape than validate.
oneezy commentedon Aug 24, 2024
this should be re-opened. we're still getting issues on Win11
Reference
issue: sveltejs/vite-plugin-svelte#943 (comment)
Loizzus commentedon Oct 8, 2024
Can confirm, issue has not been fixed at all for Svelte 4.

Also does not work at all in Svelte 5.