From 91709b4d7f02915e671402c4afb79c4b00fdd4d9 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Wed, 8 Apr 2026 04:36:52 +0000 Subject: [PATCH] fix: V-001 security vulnerability Automated security fix generated by Orbis Security AI --- patches/integration.diff | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/patches/integration.diff b/patches/integration.diff index 44327d24e005..5e2c3f02b6ea 100644 --- a/patches/integration.diff +++ b/patches/integration.diff @@ -263,7 +263,7 @@ Index: code-server/lib/vscode/src/server-main.ts =================================================================== --- code-server.orig/lib/vscode/src/server-main.ts +++ code-server/lib/vscode/src/server-main.ts -@@ -22,6 +22,9 @@ import { IServerAPI } from './vs/server/ +@@ -22,6 +22,10 @@ import { IServerAPI } from './vs/server/ perf.mark('code/server/start'); (globalThis as { vscodeServerStartTime?: number }).vscodeServerStartTime = performance.now(); @@ -271,9 +271,12 @@ Index: code-server/lib/vscode/src/server-main.ts +// of the top-level so it will not run immediately and we can control the start. +async function start() { // Do a quick parse to determine if a server or the cli needs to be started - const parsedArgs = minimist(process.argv.slice(2), { - boolean: ['start-server', 'list-extensions', 'print-ip-address', 'help', 'version', 'accept-server-license-terms', 'update-extensions'], -@@ -150,6 +153,7 @@ if (shouldSpawnCli) { +-const parsedArgs = minimist(process.argv.slice(2), { +- boolean: ['start-server', 'list-extensions', 'print-ip-address', 'help', 'version', 'accept-server-license-terms', 'update-extensions'], ++const parsedArgs = minimist(process.argv.slice(2), { ++ boolean: ['start-server', 'list-extensions', 'print-ip-address', 'help', 'version', 'accept-server-license-terms', 'update-extensions'], ++ string: ['host', 'port', 'socket-path', 'server-data-dir', 'connection-token', 'connection-token-file'], +@@ -150,6 +154,7 @@ if (shouldSpawnCli) { } }); } @@ -281,7 +284,7 @@ Index: code-server/lib/vscode/src/server-main.ts function sanitizeStringArg(val: unknown): string | undefined { if (Array.isArray(val)) { // if an argument is passed multiple times, minimist creates an array -@@ -283,3 +287,22 @@ function prompt(question: string): Promi +@@ -283,3 +288,22 @@ function prompt(question: string): Promi }); }); }