🔒 security: 升级 morgan 至 1.11.0 修复 Dependabot 告警

修复 GHSA-4vj7-5mj6-jm8m::remote-user 日志伪造(控制字符未中和)。
This commit is contained in:
Abner
2026-07-11 13:09:06 +08:00
parent e2e35fd66d
commit 5e55f0a569
2 changed files with 10 additions and 18 deletions

26
package-lock.json generated
View File

@@ -18,7 +18,7 @@
"dotenv": "^16.3.1",
"express": "^4.22.2",
"helmet": "^7.1.0",
"morgan": "^1.10.0"
"morgan": "^1.11.0"
},
"devDependencies": {
"@babel/core": "^7.29.6",
@@ -12278,19 +12278,23 @@
"license": "MIT"
},
"node_modules/morgan": {
"version": "1.10.1",
"resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.1.tgz",
"integrity": "sha512-223dMRJtI/l25dJKWpgij2cMtywuG/WiUKXdvwfbhGKBhy1puASqXwFzmWZ7+K73vUPoR7SS2Qz2cI/g9MKw0A==",
"version": "1.11.0",
"resolved": "https://registry.npmmirror.com/morgan/-/morgan-1.11.0.tgz",
"integrity": "sha512-zSkVu3t18r39pw4ixfBKvfZi3y2UOqr7d4WYwcj3m8nXpEQK4rPO6GLzs/CExoRgmX3y9EjmmcXqv6jq0SK46g==",
"license": "MIT",
"dependencies": {
"basic-auth": "~2.0.1",
"debug": "2.6.9",
"depd": "~2.0.0",
"on-finished": "~2.3.0",
"on-finished": "~2.4.1",
"on-headers": "~1.1.0"
},
"engines": {
"node": ">= 0.8.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/express"
}
},
"node_modules/morgan/node_modules/debug": {
@@ -12308,18 +12312,6 @@
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
"license": "MIT"
},
"node_modules/morgan/node_modules/on-finished": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",
"integrity": "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==",
"license": "MIT",
"dependencies": {
"ee-first": "1.1.1"
},
"engines": {
"node": ">= 0.8"
}
},
"node_modules/ms": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",

View File

@@ -51,7 +51,7 @@
"dotenv": "^16.3.1",
"express": "^4.22.2",
"helmet": "^7.1.0",
"morgan": "^1.10.0"
"morgan": "^1.11.0"
},
"devDependencies": {
"@babel/core": "^7.29.6",