🔒 security: 通过 overrides 升级 js-yaml 修复 Dependabot 告警

将传递依赖 js-yaml@3 固定到 3.15.0、js-yaml@4 固定到 4.3.0,
消除 YAML merge-key 二次方复杂度 DoS(#106/#107)。
This commit is contained in:
Abner
2026-07-22 18:03:39 +08:00
parent cd23cea87c
commit 71ca8538f7
2 changed files with 19 additions and 7 deletions

22
package-lock.json generated
View File

@@ -6888,10 +6888,20 @@
"license": "Python-2.0"
},
"node_modules/cosmiconfig/node_modules/js-yaml": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",
"integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",
"version": "4.3.0",
"resolved": "https://registry.npmmirror.com/js-yaml/-/js-yaml-4.3.0.tgz",
"integrity": "sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/puzrin"
},
{
"type": "github",
"url": "https://github.com/sponsors/nodeca"
}
],
"license": "MIT",
"dependencies": {
"argparse": "^2.0.1"
@@ -11887,9 +11897,9 @@
"license": "MIT"
},
"node_modules/js-yaml": {
"version": "3.14.2",
"resolved": "https://registry.npmmirror.com/js-yaml/-/js-yaml-3.14.2.tgz",
"integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==",
"version": "3.15.0",
"resolved": "https://registry.npmmirror.com/js-yaml/-/js-yaml-3.15.0.tgz",
"integrity": "sha512-ttBQIIQPDeLjpPOohtUdXuXUVoA2uIB6fEH9HyJ7234s5mBJ5wTx20njxplLZQgLaOfpmPQA7X2t5AX6tIPbog==",
"dev": true,
"license": "MIT",
"dependencies": {

View File

@@ -108,6 +108,8 @@
"path-to-regexp": "^0.1.13",
"rollup": "^2.80.0",
"uuid": "^14.0.0",
"ws": "^8.21.0"
"ws": "^8.21.0",
"js-yaml@3": "3.15.0",
"js-yaml@4": "4.3.0"
}
}