fix(security): close open Dependabot vulnerability alerts - #830
Conversation
Bump vulnerable direct and transitive dependencies across Go and npm lockfiles, and migrate the web client from react-router-dom v7 to react-router v8 (required for the RSC CSRF advisory patch). - google.golang.org/grpc 1.80.0 -> 1.82.1 (control-plane) - react-router 8.3.0 (replaces react-router-dom; React >=19.2.7) - next 15.5.18 -> 15.5.22, sharp -> 0.35.3 (rag_evaluation UI) - js-yaml -> 4.3.0, brace-expansion -> 1.1.16/2.1.2, postcss -> >=8.5.18 - fast-uri -> 3.1.4 (desktop, mastra-bench) - CI Node for control-plane/web builds: 20 -> 22 Co-authored-by: Santosh kumar <santoshkumarradha@users.noreply.github.com>
Override transitive hono to 4.12.32 and @hono/node-server to 2.0.12 to clear remaining moderate Dependabot alerts (JSX context isolation, cx() XSS, API Gateway header de-dupe, Windows serve-static path traversal). Co-authored-by: Santosh kumar <santoshkumarradha@users.noreply.github.com>
Performance
⚠ Regression detected:
|
📊 Coverage gateThresholds from
✅ Gate passedNo surface regressed past the allowed threshold and the aggregate stayed above the floor. |
📐 Patch coverage gateThreshold: 80% on lines this PR touches vs
✅ Patch gate passedEvery surface whose lines were touched by this PR has patch coverage at or above the threshold. |
|
@santoshkumarradha everything's green here except the |
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
Done sir |
Summary
Single PR that upgrades all currently open Dependabot-alerted packages so the security alerts can auto-close once merged.
High
google.golang.org/grpc(control-plane/go.mod)1.80.0→1.82.1react-router(web client locks)react-router-dom→react-router@8.3.0(React ≥19.2.7)brace-expansion(web client locks)1.1.16/2.1.2via overridesjs-yaml4.3.0postcss≥8.5.18fast-uri3.1.4next(rag evaluation UI)15.5.18→15.5.22sharp(via next)0.35.3Moderate / Low
react-router(XSS / constructor injection / open redirect)react-router@8.3.0next(cache confusion, Server Actions, image SVG DoS, endpoint disclosure)next@15.5.22hono(header de-dupe,cx()XSS, JSX context isolation)4.12.32in mastra-bench@hono/node-server(Windows%5Cpath traversal)2.0.12in mastra-benchbody-parser2.3.0(mastra-bench) /1.20.6(sdk/typescript)Also bumps control-plane / coverage / release Node for web builds to 22 because
react-router@8requires Node ≥22.22.Supersedes Dependabot PRs #804 and #824.
Type of change
react-router-dom→react-router)Test plan
cd control-plane && GOTOOLCHAIN=auto go build -o /tmp/af-test ./cmd/afcd control-plane/web/client && npm run buildcd control-plane/web/client && npm test(683 passed)cd sdk/typescript && npm test(807 passed)cd desktop && npm run typecheckcd examples/benchmarks/100k-scale/mastra-bench && npm audit→ 0 vulnerabilitiesTest coverage
ExecutionForm.tsx.Related issues / PRs