#VU106922 Information disclosure in Next.js - CVE-2025-30218


Vulnerability identifier: #VU106922

Vulnerability risk: Low

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

CVE-ID: CVE-2025-30218

CWE-ID: CWE-200

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Next.js
Server applications / Frameworks for developing and running applications

Vendor: Zeit

Description

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

The vulnerability exists due to software may leak the "x-middleware-subrequest-id" to a third party. A remote attacker with control over the third-party server can obtain the header value and use it to bypass authentication.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Next.js: 12.0.0 - 12.0.10, 12.1.0 - 12.1.6, 12.2.0 - 12.2.6, 12.3.0 - 12.3.5, 13.0.0 - 13.0.7, 13.1.0 - 13.1.6, 13.2.0 - 13.2.4, 13.3.0 - 13.3.4, 13.4.0 - 13.4.19, 13.5.0 - 13.5.10, 14.0.0 - 14.0.4, 14.1.0 - 14.1.4, 14.2.0 - 14.2.25, 15.0.0 - 15.0.4, 15.1.0 - 15.1.7, 15.2.0 - 15.2.3


External links
https://github.com/vercel/next.js/security/advisories/GHSA-223j-4rm8-mrmf
https://vercel.com/changelog/cve-2025-30218-5DREmEH765PoeAsrNNQj3O


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.


Latest bulletins with this vulnerability