Skip to content

fix: Resolve production dependency vulnerabilities - #39

Merged
codejagaban merged 6 commits into
test/commerce-smokefrom
fix/dependency-security
Oct 20, 2026
Merged

codejagaban merged 6 commits into
test/commerce-smokefrom
fix/dependency-security

Conversation

@codejagaban

Copy link
Copy Markdown
Owner

Scope

Stacked on #38 (base: test/commerce-smoke). This PR contains only the dependency-security work and related compatibility fixes. Neither PR has been merged.

  • Production audit: 25 findings → 0, including all 8 high-severity findings.
  • Full audit: 35 findings → 2; also resolves the critical Vitest advisory.
  • Upgrade Next.js to 16.3.8, Sharp to 0.35.5, all Payload packages to 3.91.0, and Vitest to 4.1.12.
  • Use Payload's supported Nodemailer 10 / Undici updates and scoped overrides to remove vulnerable production globbing paths. A regression test guards the unused cloud-storage dependency removal.
  • Preserve local dashboard image optimization without disabling Next.js's private-IP protections.
  • Document Node.js requirements, remaining advisories, override rationale, and verification in DEPENDENCY_SECURITY.md.

Remaining findings

  • High: development-only braces via lint tooling; no upstream patched release.
  • Moderate: postcss-selector-parser pinned by Tailwind typography; separate compatibility review required.
  • No advisory suppression or weakened CI audit gate.

Verification

  • Frozen-lockfile install and production audit pass.
  • 32 unit tests, 21 integration tests, and 11 production-build browser tests pass.
  • Typecheck and lint pass (110 existing lint warnings).
  • Node.js 24 production-build smoke passes with real Stripe sandbox payments/webhooks, captured SMTP receipts/password reset, and R2 uploads/derivatives/image optimization.
  • Temporary test records and media cleaned; real customer data untouched.
  • An earlier Node.js 26 smoke worker stalled after successful assertions; final CI-matched Node.js 24 run exited normally.
  • Six atomic, GPG-signed commits. Hosted HTTPS smoke verification remains separate.

@vercel

vercel Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
nextjs-ecomstore Ready Ready Preview Oct 19, 2026 7:56pm UTC

@codejagaban
codejagaban merged commit 111fd17 into test/commerce-smoke Oct 20, 2026
3 checks passed

This branch was successfully deployed

2 active deployments
Production — 111fd17f Deployed Oct 20, 2026 by vercel[bot]
Preview — 111fd17f Deployed Oct 19, 2026 by vercel[bot]
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