NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

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

lowCVSS 4.0 2.3GHSA-3h52-269p-cp9r

Summary 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.

Published May 28, 2025 · Updated Jun 13, 2025

Affected packages

next

Ecosystem
npm
Affected
>= 15.0.0, < 15.2.2
Fixed in
15.2.2
Check
npm ls next

next

Ecosystem
npm
Affected
>= 13.0, < 14.2.30
Fixed in
14.2.30
Check
npm ls next

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Summary

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

Credit

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

Credited to sapphi-red, R4356th.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries