fix: address dependency and code scanning vulnerabilities

Upgrade SQLite to 1.1.5 and tar to 7.5.23 without a tar override.
Update Umi, React Router, uuid, lint-staged and compatible transitive
security fixes while retaining the existing ProLayout version.

Constrain script file operations to checked paths, serialize Python
environment values safely, and keep resource-intensive API limits with
room for normal bulk use. Avoid dynamic child-process code in upgrade
tests and load offline installer scripts from a fixed working directory.

Cover dependency compatibility, rate limits, offline recovery and npm
packaging, including the decoder patch required by existing Umi consumers.
This commit is contained in:
whyour committed 2026-11-20 10:11:04 +08:00
1 parent 0902bc074d
commit 9023a654df
20 files changed
+3055 -2752

No files matched your search

+27 -19
View File
@@ -17,6 +17,7 @@
"back/protos/api.proto",
"cli/src/internal/maintenance/*.cjs",
"ecosystem.config.js",
"patches/*.patch",
"README*.md",
"sample/*.sample.*",
"sample/notify.js",
@@ -115,13 +116,20 @@
}
},
"overrides": {
"sqlite3": "npm:@whyour/sqlite3@1.1.4",
"sqlite3": "npm:@whyour/sqlite3@1.1.5",
"@codemirror/state": "6.5.4",
"@codemirror/view": "6.39.16",
"proxy-addr": "2.0.8",
"websocket-driver": "0.7.5",
"brace-expansion@1": "1.1.21",
"brace-expansion@2": "2.1.7"
"axios@0": "0.34.0",
"immer@8": "9.0.21",
"vite@7": "7.3.7",
"decode-uri-component": "0.5.1",
"path-to-regexp@1": "1.9.0",
"path-to-regexp@2": "3.3.0",
"path-to-regexp@8": "8.4.0",
"celebrate>lodash": "4.18.0"
},
"patchedDependencies": {
"decode-uri-component@0.5.1": "patches/decode-uri-component@0.5.1.patch"
}
},
"dependencies": {
@@ -131,7 +139,7 @@
"@grpc/proto-loader": "^0.8.0",
"@keyv/sqlite": "^4.0.1",
"@otplib/preset-default": "^12.0.1",
"body-parser": "^1.20.3",
"body-parser": "^1.20.9",
"celebrate": "^15.0.3",
"chokidar": "^4.0.1",
"compression": "1.8.2",
@@ -140,7 +148,7 @@
"cross-spawn": "^7.0.6",
"dayjs": "^1.11.13",
"dotenv": "^16.4.6",
"express": "^4.21.2",
"express": "^4.22.3",
"express-jwt": "^8.4.1",
"express-rate-limit": "^7.4.1",
"express-urlrewrite": "^2.0.3",
@@ -152,10 +160,10 @@
"js-yaml": "^4.1.0",
"jsonwebtoken": "^9.0.2",
"keyv": "^5.2.3",
"lodash": "^4.17.21",
"multer": "2.4.0",
"lodash": "^4.18.0",
"multer": "2.5.0",
"node-cron": "4.6.0",
"nodemailer": "^10.0.9",
"nodemailer": "^10.1.4",
"p-queue-cjs": "7.3.4",
"proper-lockfile": "^4.1.2",
"ps-tree": "^1.2.0",
@@ -163,14 +171,14 @@
"request-ip": "3.3.0",
"sequelize": "6.37.8",
"sockjs": "^0.3.24",
"sqlite3": "npm:@whyour/sqlite3@1.1.4",
"sqlite3": "npm:@whyour/sqlite3@1.1.5",
"tar": "7.5.23",
"toad-scheduler": "^3.0.1",
"typedi": "^0.10.0",
"undici": "^7.9.0",
"uuid": "^11.0.3",
"undici": "^7.30.1",
"uuid": "^11.1.1",
"winston": "^3.17.0",
"winston-daily-rotate-file": "^5.0.0",
"tar": "7.5.20"
"winston-daily-rotate-file": "^5.0.0"
},
"devDependencies": {
"@ant-design/icons": "^5.0.1",
@@ -206,17 +214,17 @@
"@types/uuid": "^8.3.4",
"@uiw/codemirror-extensions-langs": "^4.21.9",
"@uiw/react-codemirror": "^4.21.9",
"@umijs/max": "^4.7.33",
"@umijs/max": "^4.7.34",
"@umijs/ssr-darkreader": "^4.9.45",
"ahooks": "^3.7.8",
"ansi-to-react": "^6.1.6",
"antd": "^4.24.16",
"antd-img-crop": "^4.23.0",
"axios": "^1.4.0",
"compression-webpack-plugin": "9.2.0",
"compression-webpack-plugin": "12.0.0",
"concurrently": "^7.0.0",
"file-saver": "2.0.2",
"lint-staged": "^13.0.3",
"lint-staged": "^15.5.2",
"moment": "2.31.0",
"monaco-editor": "0.33.0",
"nodemon": "^3.0.1",
@@ -235,7 +243,7 @@
"react-dom": "18.3.1",
"react-hotkeys-hook": "^4.6.1",
"react-intl-universal": "^2.12.0",
"react-router-dom": "6.26.1",
"react-router-dom": "6.30.6",
"react-split-pane": "^0.1.92",
"sockjs-client": "^1.6.0",
"ts-node": "^10.9.2",