Missing WebSocket origin validation in Next.js



Risk Low
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2025-48068
CWE-ID CWE-1385
Exploitation vector Network
Public exploit N/A
Vulnerable software
Next.js
Server applications / Frameworks for developing and running applications

Vendor Zeit

Security Bulletin

This security bulletin contains one low risk vulnerability.

1) Missing Origin Validation in WebSockets

EUVDB-ID: #VU109922

Risk: Low

CVSSv4.0: 0.6 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear]

CVE-ID: CVE-2025-48068

CWE-ID: CWE-1385 - Missing Origin Validation in WebSockets

Exploit availability: No

Description

The vulnerability allows a remote attacker to gain access to sensitive information.

The vulnerability exists due to missing origin validation on the WebSocket interface  if the project uses the App Router. When running next dev, a malicious website can open a WebSocket connection to localhost and access component source code.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

Next.js: before

CPE2.3 External links

https://github.com/vercel/next.js/security/advisories/GHSA-3h52-269p-cp9r
https://vercel.com/changelog/cve-2025-48068


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###