megachangelog
Security14.2.30, 15.2.2

Security: CVE-2025-48068 – Origin validation in Next.js dev server

A low-severity vulnerability in the Next.js development server lacked proper origin validation, allowing malicious websites to initiate WebSocket hijacking and cross-origin script injection attacks. This has been fixed with an opt-in origin check configuration in patched versions 14.2.30 and 15.2.2, with the feature set to become default in a future major release.

A low-severity vulnerability in the Next.js dev server has been addressed.

This vulnerability affects Next.js versions through and through . It includes two related issues affecting the local development server: and . Both stem from the lack of origin validation on development server resources.13.0.014.2.2915.0.015.2.1Cross-Site WebSocket Hijacking (CSWSH)Cross-Origin Script Inclusion

When running , a malicious website can:next dev

The root cause is insufficient origin verification on local development server resources, including the WebSocket server and static script endpoints. This issue is similar to , though scoped strictly to local development use.CVE-2018-14732

This issue was fixed in These releases introduce a configuration option to enable origin checks, which help prevent unauthorized cross-origin requests to the local development server. You can learn how to enable this option after upgrading to a patched version by visiting our . Note that this configuration is currently opt-in and will become the default in a future major release. Next.js versions and .14.2.3015.2.2documentation page

This CVE affects local development, no mitigation are required for applications in production on Vercel.

Thanks to and for responsibly disclosing this issue.sapphi-redRadman Siddiki

Read more

Summary

Impact

Resolution

Workarounds

For Vercel Customers

Credit

References

  • to and interact with the local development server if the project uses the App Router, potentially exposing internal component code.Initiate a WebSocket connectionlocalhost

  • referencing predictable paths for development scripts (e.g., ), which are then executed in the attacker's origin. This can allow extraction of source codeInject a <script> tag/app/page.js

  • Avoid browsing untrusted websites while running the local development server

  • Implement local firewall or proxy rules to block unauthorized access to the development server

securitynext.jsdev-servercvevulnerability

Source: original entry ↗

More from Vercel

Follow Vercel to get its new changes in your feed and email digest.

Announcement2026.10.19

Updates to Hobby and Pro Terms of Service

Vercel is updating Terms of Service for Hobby and Pro customers effective October 19, 2026, clarifying credit policies, managed accounts, auto-renewal practices, and adding statutory cancellation and refund rights for UK and EU consumers, including protections for service changes with negative impact.

termsbillingcreditspolicylegal
Announcement

Mercury 3 now available on AI Gateway

Inception's Mercury 3 model is now available on Vercel's AI Gateway with 50% launch pricing and generation speeds exceeding 1,000 tokens per second. The model enables parallel text refinement with a 1M-token context window, ideal for real-time applications like browser agents and customer support.

ai-gatewaymodelsinferencellmlaunch
Announcement

MiniMax M3.1 Flash now available on AI Gateway for free

MiniMax M3.1 Flash, an open-weight multimodal model with 1M-token context window for coding and agentic work, is now available on Vercel's AI Gateway at no cost through October 20. The model excels at complex agent tasks, coding applications, and cybersecurity work, and can be used through multiple APIs and coding agents.

ai-gatewaymodelscodingagentsapi
See all Vercel changes →