VDB
Sign up
MEDIUM5.4

GHSA-39w2-rjm5-chcv

Next.js has information disclosure in development server's Model Context Protocol endpoint

Quick fix

GHSA-39w2-rjm5-chcv — next: upgrade to the fixed version with the command below.

npm install next@16.3.8

Details

The Next.js development server (`next dev`) exposes a Model Context Protocol endpoint that does not verify which website a request originates from, allowing a malicious website visited by the developer to read sensitive development data — including the project's location on disk, source code snippets from error reports, the route inventory, and development logs. Only applications run with `next dev` are affected. Production deployments do not serve this endpoint.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/next
Introduced in: 16.0.0Fixed in: 16.3.8
Fixnpm install next@16.3.8

References