CVE-2026-40299
next-intl provides internationalization for Next.js. Applications …
next-intl provides internationalization for Next.js. Applications using the `next-intl` middleware prior to version 4.9.1with `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. The problem has been patchedin `[email protected]`.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/amannn/next-intl/commit/1c80b668aa6d853f470319eec10a3f61e78a70e6
- github.com/amannn/next-intl/pull/2304
- github.com/amannn/next-intl/releases/tag/v4.9.1
- github.com/amannn/next-intl/security/advisories/GHSA-8f24-v5vv-gm5j
- github.com/advisories/GHSA-8f24-v5vv-gm5j
- nvd.nist.gov/vuln/detail/CVE-2026-40299
- nvd.nist.gov/vuln/detail/CVE-2026-40299
- cve.org/CVERecord?id=CVE-2026-40299
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.