Skip to content

chore(web): production dependency security upgrade - #160

Merged
dennis0405 merged 1 commit into
developfrom
chore/web-security-upgrade
Aug 17, 2026
Merged

dennis0405 merged 1 commit into
developfrom
chore/web-security-upgrade

Conversation

@dennis0405

Copy link
Copy Markdown
Collaborator

Summary

  • upgrade Next.js from 14.1.0 to maintenance LTS 15.5.21
  • keep the Pages Router on React 18.2.0, which Next.js 15 officially supports, to avoid mixing React runtimes with the React Native workspace
  • upgrade Axios to 1.19.0 and Swagger UI to 5.32.13
  • pin patched Sharp, PostCSS, and Nanoid versions for the hoisted pnpm workspace
  • move outputFileTracingRoot to the stable Next.js 15 config location

Security result

  • before: 1 critical / 31 high production audit findings
  • after: 0 critical / 5 high
  • all remaining high findings are mobile-only, non-reachable paths:
    • undici: transitive Firebase web SDK WebSocket client under React Native Firebase; the app uses native Firebase modules
    • image-size: Metro build-time parser limited to trusted repository assets
  • no reachable web critical/high finding remains

Verification

  • pnpm verify — 6/6 tasks passed; web 43 tests, mobile 82 tests
  • pnpm --dir apps/mobile run bundle:android
  • pnpm --dir apps/mobile run bundle:ios
  • pnpm --filter allclear-web build
  • web peer dependency check: no bad/missing/conflicting peers
  • Next.js 15.5.21, React/React DOM 18.2.0, Sharp 0.35.3 verified in the installed graph
  • vulnerable overridden versions absent from pnpm-lock.yaml

References

Upgrade Next.js to the maintained 15.5 release and Axios to the hardened 1.x line. Pin patched transitive versions for the hoisted workspace while keeping both apps on React 18.
@dennis0405
dennis0405 merged commit a0f2afd into develop Aug 17, 2026
4 checks passed
@dennis0405
dennis0405 deleted the chore/web-security-upgrade branch August 17, 2026 01:51
@dennis0405 dennis0405 mentioned this pull request Aug 17, 2026
6 of 12 tasks
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