chore(frontend): resolve the high-severity brace-expansion advisory (#6180)

npm audit --omit=dev --audit-level=high is a CI gate and it currently fails on
main: swagger-ui-react pulls @swagger-api/apidom-reference, which pins
minimatch, which resolves brace-expansion to 5.0.8 — the range covered by
GHSA-rgw5-rvv9-x895.

Pin the patched 5.0.9 through the existing swagger-ui-react overrides block
rather than globally: minimatch@3 under eslint-plugin-jsx-a11y still needs the
1.x line, and a blanket override would force v5 there too.
This commit is contained in:
n0ctal
2026-08-06 19:29:03 +05:00
committed by GitHub
parent 199ddaf485
commit 7eacce6a46
2 changed files with 15 additions and 1 deletions
+13
View File
@@ -4567,6 +4567,18 @@
"@swagger-api/apidom-parser-adapter-yaml-1-2": "^1.12.0"
}
},
"node_modules/@swagger-api/apidom-reference/node_modules/brace-expansion": {
"version": "5.0.9",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz",
"integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==",
"license": "MIT",
"dependencies": {
"balanced-match": "^4.0.2"
},
"engines": {
"node": "20 || >=22"
}
},
"node_modules/@swagger-api/apidom-reference/node_modules/minimatch": {
"version": "10.2.6",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",
@@ -5928,6 +5940,7 @@
"version": "5.0.8",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.8.tgz",
"integrity": "sha512-JZyDyq3D4AUifKTPOB7DELf6XsB3WdPuNxCtob1vFXPsSXhdAiHBWJ/tJ8HAc9aH84BK+5JFZLNkJKx3G9kzQg==",
"dev": true,
"license": "MIT",
"dependencies": {
"balanced-match": "^4.0.2"
+2 -1
View File
@@ -89,7 +89,8 @@
"react": "^19.0.0"
},
"swagger-ui-react": {
"js-yaml": "^4.2.0"
"js-yaml": "^4.2.0",
"brace-expansion": "^5.0.9"
},
"@typeschema/valibot": {
"valibot": "^1.1.0"