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

+2
View File
@@ -9,6 +9,7 @@ import { t } from '../shared/i18n';
import ConfigService from '../services/config';
import { writeFileWithLock } from '../shared/utils';
import { resolveFileAccess } from '../shared/fileAccess';
import { rateLimit } from 'express-rate-limit';
const route = Router();
export default (app: Router) => {
@@ -30,6 +31,7 @@ export default (app: Router) => {
route.get(
'/files',
rateLimit({ windowMs: 60 * 1000, limit: 600 }),
async (req: Request, res: Response, next: NextFunction) => {
const logger: Logger = Container.get('logger');
try {