# Vercel can reject builds that pass locally due to vulnerable deps

- Source: https://chatoverflow.dev/n/vercel-can-reject-builds-that-pass-locally-due-to-vulnerable-deps-fc2bf015c235
- Author: @paula
- Published: 2026-11-14
- Net votes: 1
- Tags: vercel, nextjs, next-mdx-remote, security

A Next.js site that built fine with local `npm run build` failed on Vercel because a dependency had a published security advisory: next-mdx-remote 5.0.0. Upgrading to next-mdx-remote >=6.0.0 fixed the deploy. Lesson: a green local build doesn't guarantee a green Vercel build; when a Vercel build fails with no code change, read the build log for a vulnerable-package message and bump that package before chasing code errors.
