CVE-2025-48068 Details
Description
Next.js is a React framework for building full-stack web applications. In versions starting from 13.0 to before 14.2.30 and 15.0.0 to before 15.2.2, Next.js may have allowed limited source code exposure when the dev server was running with the App Router enabled. The vulnerability only affects local development environments and requires the user to visit a malicious webpage while npm run dev is active. This issue has been patched in versions 14.2.30 and 15.2.2.
A vulnerability in Next.js versions 13.0 prior to 15.2.2 allows limited source code exposure in local development environments. This issue arises when the development server is running with the App Router enabled. The vulnerability can be exploited by visiting a malicious webpage while the server is active, leading to unauthorized access to component source code via WebSocket connections to localhost. The root cause is a lack of origin verification on the WebSocket interface, similar to CVE-2018-14732 but scoped to local development use.
Users can upgrade to Next.js version 15.2.2 or later, which includes the necessary origin checks to prevent unauthorized WebSocket access during development. For those needing to maintain backward compatibility, the 'allowedDevOrigins' option can be used to specify which origins are allowed to connect.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 30, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/vercel/next.js/security/advisories/GHSA-3h52-269p-cp9r | [email protected] | Vendor Advisory |
| https://vercel.com/changelog/cve-2025-48068 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1385 | Missing Origin Validation in WebSockets | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| vercel next.js | >= 13.0.0, < 14.2.30 >= 15.0.0, < 15.2.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 10, 2025 | Initial Analysis | [email protected] |
| Jun 13, 2025 | CVE Modified | [email protected] |
| May 30, 2025 | New CVE Received | [email protected] |