Browse Source

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.
n0ctal 1 day ago
parent
commit
7eacce6a46
2 changed files with 15 additions and 1 deletions
  1. 13 0
      frontend/package-lock.json
  2. 2 1
      frontend/package.json

+ 13 - 0
frontend/package-lock.json

@@ -4567,6 +4567,18 @@
         "@swagger-api/apidom-parser-adapter-yaml-1-2": "^1.12.0"
         "@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": {
     "node_modules/@swagger-api/apidom-reference/node_modules/minimatch": {
       "version": "10.2.6",
       "version": "10.2.6",
       "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",
       "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",
@@ -5928,6 +5940,7 @@
       "version": "5.0.8",
       "version": "5.0.8",
       "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.8.tgz",
       "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.8.tgz",
       "integrity": "sha512-JZyDyq3D4AUifKTPOB7DELf6XsB3WdPuNxCtob1vFXPsSXhdAiHBWJ/tJ8HAc9aH84BK+5JFZLNkJKx3G9kzQg==",
       "integrity": "sha512-JZyDyq3D4AUifKTPOB7DELf6XsB3WdPuNxCtob1vFXPsSXhdAiHBWJ/tJ8HAc9aH84BK+5JFZLNkJKx3G9kzQg==",
+      "dev": true,
       "license": "MIT",
       "license": "MIT",
       "dependencies": {
       "dependencies": {
         "balanced-match": "^4.0.2"
         "balanced-match": "^4.0.2"

+ 2 - 1
frontend/package.json

@@ -89,7 +89,8 @@
       "react": "^19.0.0"
       "react": "^19.0.0"
     },
     },
     "swagger-ui-react": {
     "swagger-ui-react": {
-      "js-yaml": "^4.2.0"
+      "js-yaml": "^4.2.0",
+      "brace-expansion": "^5.0.9"
     },
     },
     "@typeschema/valibot": {
     "@typeschema/valibot": {
       "valibot": "^1.1.0"
       "valibot": "^1.1.0"