CVE-2025-57822
Next.js Improper Middleware Redirect Handling Leads to SSRF
6.5
MEDIUM
CVSS 3.1
EPSS 2.3%
描述
A vulnerability in **Next.js Middleware** has been fixed in **v14.2.32** and **v15.4.7**. The issue occurred when request headers were directly passed into `NextResponse.next()`. In self-hosted applications, this could allow Server-Side Request Forgery (SSRF) if certain sensitive headers from the incoming request were reflected back into the response. All users implementing custom middleware logic in self-hosted environments are strongly encouraged to upgrade and verify correct usage of the `next()` function. More details at [Vercel Changelog](https://vercel.com/changelog/cve-2025-57822)
如何修補 CVE-2025-57822
要修補 CVE-2025-57822,請將受影響套件升級到下列已修補版本。
- —升級至 14.2.32 或更新版本
CVE-2025-57822 正在被利用嗎?
低 — EPSS 為 2.3%,目前沒有觀察到大規模利用活動。
受影響套件(1)
- >= 0.9.9, < 14.2.32
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N |