From a057145a5288cc879ba7fa87b2f5d35ba3c67494 Mon Sep 17 00:00:00 2001 From: git-hulk Date: Mon, 8 Dec 2025 17:49:03 +0800 Subject: [PATCH 1/3] Upgrade React/NextJS version to fix CVE-2025-55182 --- webui/package.json | 18 ++++++------- webui/tsconfig.json | 64 +++++++++++++++++++++++++++------------------ 2 files changed, 48 insertions(+), 34 deletions(-) diff --git a/webui/package.json b/webui/package.json index 67f62c9..6e90162 100644 --- a/webui/package.json +++ b/webui/package.json @@ -21,17 +21,17 @@ "@types/js-yaml": "^4.0.9", "axios": "^1.6.7", "js-yaml": "^4.1.0", - "next": "15.5.4", - "react": "19.2.0", - "react-dom": "19.2.0" + "next": "^16.0.7", + "react": "^19.2.1", + "react-dom": "^19.2.1" }, "devDependencies": { "@types/node": "^20", - "@types/react": "19.2.2", - "@types/react-dom": "19.2.1", + "@types/react": "^19.2.3", + "@types/react-dom": "^19.2.2", "autoprefixer": "^10.0.1", - "eslint": "^8", - "eslint-config-next": "15.5.4", + "eslint": "^9.39.1", + "eslint-config-next": "^16.0.7", "eslint-config-prettier": "^10.1.1", "postcss": "^8", "prettier": "^3.6.2", @@ -40,7 +40,7 @@ "typescript": "^5" }, "overrides": { - "@types/react": "19.2.2", - "@types/react-dom": "19.2.1" + "@types/react": "^19.2.3", + "@types/react-dom": "^19.2.2" } } diff --git a/webui/tsconfig.json b/webui/tsconfig.json index 8ec9a25..d2ef46c 100644 --- a/webui/tsconfig.json +++ b/webui/tsconfig.json @@ -15,30 +15,44 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - */ { - "compilerOptions": { - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "bundler", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve", - "incremental": true, - "plugins": [ - { - "name": "next" - } - ], - "paths": { - "@/*": ["./src/*"] - }, - "target": "ES2017" + */{ + "compilerOptions": { + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "bundler", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "react-jsx", + "incremental": true, + "plugins": [ + { + "name": "next" + } + ], + "paths": { + "@/*": [ + "./src/*" + ] }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] + "target": "ES2017" + }, + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + ".next/types/**/*.ts", + ".next/dev/types/**/*.ts" + ], + "exclude": [ + "node_modules" + ] } From 84e52bbc7ecc68ee82b946d3d70dfb3723de3e4e Mon Sep 17 00:00:00 2001 From: git-hulk Date: Mon, 8 Dec 2025 17:53:50 +0800 Subject: [PATCH 2/3] Fix lint --- webui/tsconfig.json | 70 ++++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 39 deletions(-) diff --git a/webui/tsconfig.json b/webui/tsconfig.json index d2ef46c..16f0ff7 100644 --- a/webui/tsconfig.json +++ b/webui/tsconfig.json @@ -15,44 +15,36 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - */{ - "compilerOptions": { - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "bundler", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "react-jsx", - "incremental": true, - "plugins": [ - { - "name": "next" - } - ], - "paths": { - "@/*": [ - "./src/*" - ] + */ { + "compilerOptions": { + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "bundler", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "react-jsx", + "incremental": true, + "plugins": [ + { + "name": "next" + } + ], + "paths": { + "@/*": ["./src/*"] + }, + "target": "ES2017" }, - "target": "ES2017" - }, - "include": [ - "next-env.d.ts", - "**/*.ts", - "**/*.tsx", - ".next/types/**/*.ts", - ".next/dev/types/**/*.ts" - ], - "exclude": [ - "node_modules" - ] + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + ".next/types/**/*.ts", + ".next/dev/types/**/*.ts" + ], + "exclude": ["node_modules"] } From 799129ba5a27273c35e4ea36332b78d58c59e220 Mon Sep 17 00:00:00 2001 From: git-hulk Date: Mon, 8 Dec 2025 17:55:33 +0800 Subject: [PATCH 3/3] Fix lint --- webui/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/tsconfig.json b/webui/tsconfig.json index 16f0ff7..143f9d7 100644 --- a/webui/tsconfig.json +++ b/webui/tsconfig.json @@ -27,7 +27,7 @@ "moduleResolution": "bundler", "resolveJsonModule": true, "isolatedModules": true, - "jsx": "react-jsx", + "jsx": "preserve", "incremental": true, "plugins": [ {