Skip to content

Fix all npm audit vulnerabilities and refresh deps in range - #400

Merged
owenthereal merged 1 commit into
mainfrom
chore/deps-security-refresh
Dec 5, 2026
Merged

owenthereal merged 1 commit into
mainfrom
chore/deps-security-refresh

Conversation

@owenthereal

Copy link
Copy Markdown
Member

Summary

npm audit: 15 advisories (1 critical, 4 high, 10 moderate) → 0, using in-range bumps and in-major overrides only — no majors. One verified replacement for the 3 open Dependabot PRs (#396, #397, #399; Dependabot closes them on merge) plus the 3 advisories without open PRs.

Change Why
cross-spawn 7.0.6 → 7.1.2 (transitive) critical + high + moderate Windows command/argument injection (#399)
override dompurify ^3.4.17 → ^3.5.1 high (2× SAFE_FOR_TEMPLATES bypass via monaco-editor)
override effect ^3.22.1 (resolves 3.22.6) high (ReDoS in Schema.TemplateLiteral via @prisma/config@7.10.1 pinning 3.20.0)
next & eslint-config-next 16.4.3 → 16.5.0 moderate (7× Next.js advisories, supersedes #396)
@sentry/nextjs & @sentry/node 11.9.0 → 11.23.0 + glob 13.0.6 → 14.0.7 moderate (glob advisories, supersedes #397)
minimatch (transitive via typescript-eslint / glob) moderate (2× advisories)

Plus in-range refreshes: @mui/material & @mui/icons-material 9.5.0 → 9.6.0, @mui/lab 9.0.0-beta.10 → 9.0.0-beta.11, @scalar/api-reference-react 0.9.83 → 0.9.102, next-openapi-gen 1.9.0 → 1.11.0, piscina 5.3.2 → 5.4.0, rate-limiter-flexible 11.2.3 → 11.7.1, vitest 5.0.5 → 5.1.2, @types/node 24.19.2 → 24.19.4, and @types/react 19.3.0 → 19.3.3.

 "overrides": {
-  "dompurify": "^3.4.17"
+  "dompurify": "^3.5.1",
+  "effect": "^3.22.1"
 }

public/openapi.json regenerated (+2 lines): next-openapi-gen@1.11.0 now emits maxLength: 262144 on Snippet.query and SnippetShape.query, matching src/schemas/domain/snippet.ts.

Evidence

  • Before: npm audit → 15 vulnerabilities (1 critical, 4 high, 10 moderate)
    After: npm audit → 0 vulnerabilities
  • Gate on Node 24.21.0: npx tsc --noEmit clean, npm run lint clean, npm test 89/89 (7/7 files), npm run build clean (.next/BUILD_ID and .next/standalone/server.js verified)
  • Real app (Postgres 16 + production standalone node .next/standalone/server.js):
    • node node_modules/prisma/build/index.js migrate deploy succeeded with effect@3.22.6 override
    • GET /api/health, GET /api/jq, POST /api/jq (Piscina pool), POST /api/snippets → GET /api/snippets/CANq8YDuqPW0lDh → GET /s/CANq8YDuqPW0lDh (HTTP 200)
  • Playwright on the same standalone build:
    • Homepage Web Worker execution: [3, 1, 2] with sort → [\n 1,\n 2,\n 3\n]
    • Shared snippet /s/CANq8YDuqPW0lDh pre-populated from Postgres and evaluated to [1,2,3]
    • /api Scalar docs rendered with real /openapi.json parameter examples intact
    • 375 / 768 / 1440 px viewports: 0 horizontal overflow; 0 console errors, 0 page errors, 0 failed requests

Merge Danger

Door: two-way

Revert restores the previous lockfile, package.json, and 2 lines in public/openapi.json; no schema migrations or data changes.

Blast Radius: app-wide

All changes are in-range bumps or in-major overrides, touching Next.js (16.4 → 16.5), MUI (9.5 → 9.6), Sentry (11.9 → 11.23), and @prisma/config's transitive effect (3.20.0 → 3.22.6). All runtime paths (worker, Piscina API, Prisma migrate + CRUD, Scalar docs) were verified end-to-end above.

Deferred

  • Follow-up PR stacked on this one: Node 24 → 26 LTS + @types/node 26.
  • eslint 10 — blocked upstream (eslint-config-next@16.5.0 pulls eslint-plugin-react@^7.37.0, peer cap eslint ^9.7).
  • typescript 7 — eslint-config-next@16.5.0 caps peer typescript at <6.1.0.
  • monaco-editor 0.58 — microsoft/monaco-editor#5491 is still open and min/vs layout breaks scripts/copy-monaco.sh.
  • prisma 8 — pre-release only (8.0.0-rc.40).

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-05T17:52:47.624385Z 0bd5aa2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@owenthereal
owenthereal merged commit d79208b into main Dec 5, 2026
1 check passed
@owenthereal
owenthereal deleted the chore/deps-security-refresh branch December 5, 2026 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant