Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. next
  4. ›
  5. CVE-2025-48068

CVE-2025-48068: Information exposure in Next.js dev server due to lack of origin verification

May 28, 2025 (updated June 13, 2025)

A low-severity vulnerability in Next.js has been fixed in version 15.2.2. This issue 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.

Because the mitigation is potentially a breaking change for some development setups, to opt-in to the fix, you must configure allowedDevOrigins in your next config after upgrading to a patched version. Learn more.

Learn more: https://vercel.com/changelog/cve-2025-48068

References

  • github.com/advisories/GHSA-3h52-269p-cp9r
  • github.com/vercel/next.js
  • github.com/vercel/next.js/security/advisories/GHSA-3h52-269p-cp9r
  • nvd.nist.gov/vuln/detail/CVE-2025-48068
  • vercel.com/changelog/cve-2025-48068

Code Behaviors & Features

Detect and mitigate CVE-2025-48068 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 13.0 before 14.2.30, all versions starting from 15.0.0 before 15.2.2

Fixed versions

  • 15.2.2
  • 14.2.30

Solution

Upgrade to versions 14.2.30, 15.2.2 or above.

Weakness

  • CWE-1385: Missing Origin Validation in WebSockets

Source file

npm/next/CVE-2025-48068.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:04 +0000.