CVE-2026-40299
next-intl has an open redirect vulnerability
描述
### Impact Applications using the `next-intl` middleware with `localePrefix: 'as-needed'` could construct URLs where path handling and the WHATWG URL parser resolved a relative redirect target to another host (e.g. scheme-relative `//` or control characters stripped by the URL parser), so the middleware could redirect the browser off-site while the user still started from a trusted app URL. ### Patches The problem has been patched, please update to [`[email protected]`](https://github.com/amannn/next-intl/releases/tag/v4.9.1). ### Credits Many thanks to [Joni Liljeblad](https://github.com/joniumGit) from [Oura](https://ouraring.com) for responsibly disclosing the vulnerability and for suggesting the fix.
如何修補 CVE-2026-40299
要修補 CVE-2026-40299,請將受影響套件升級到下列已修補版本。
- —升級至 4.9.1 或更新版本
CVE-2026-40299 正在被利用嗎?
低 — EPSS 為 0.1%,目前沒有觀察到大規模利用活動。
受影響套件(1)
- from 0, < 4.9.1
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |