{"id":"CVE-2026-40299","aliases":["CVE-2026-40299","GHSA-8f24-v5vv-gm5j"],"related":[],"kind":"vulnerability","state":"published","title":"next-intl has an open redirect vulnerability","summary":"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 `next-intl@4.9.1`.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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 `next-intl@4.9.1`.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nApplications 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.\n\n### Patches\n\nThe problem has been patched, please update to [`next-intl@4.9.1`](https://github.com/amannn/next-intl/releases/tag/v4.9.1).\n\n### Credits\n\nMany thanks to [Joni Liljeblad](https://github.com/joniumGit) from [Oura](https://ouraring.com) for responsibly disclosing the vulnerability and for suggesting the fix.","format":"markdown","source":"ghsa"},{"lang":"es","text":"next-intl proporciona internacionalización para Next.js. Las aplicaciones que utilizan el middleware “next-intl” antes de la versión 4.9.1 con “localePrefix: ’as-needed’” podrían construir URLs donde el manejo de rutas y el analizador de URLs WHATWG resolvían un objetivo de redirección relativo a otro host (por ejemplo, “//” relativo al esquema o caracteres de control eliminados por el analizador de URLs), por lo que el middleware podría redirigir el navegador fuera del sitio mientras el usuario aún partía de una URL de aplicación de confianza. El problema ha sido parcheado en “next-intl@4.9.1”.","source":"nvd"}],"published":"2026-04-10T21:03:55.000Z","modified":"2026-10-26T21:10:00.170Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"version":"< 4.9.1","status":"affected"}],"vendor":"amannn","product":"next-intl","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.9.1"}],"ecosystem":"npm","package":"next-intl","purl":"pkg:npm/next-intl","source":"ghsa"}],"references":[{"url":"https://github.com/amannn/next-intl/security/advisories/GHSA-8f24-v5vv-gm5j","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/amannn/next-intl/pull/2304","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/amannn/next-intl/commit/1c80b668aa6d853f470319eec10a3f61e78a70e6","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/amannn/next-intl/releases/tag/v4.9.1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40299","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/amannn/next-intl","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-04-20T15:56:01.407Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40299","url":"https://www.cve.org/CVERecord?id=CVE-2026-40299","licence":"CVE Terms of Use","modified":"2026-04-20T15:58:51.149Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8f24-v5vv-gm5j","url":"https://github.com/advisories/GHSA-8f24-v5vv-gm5j","licence":"CC-BY-4.0","modified":"2026-05-05T16:04:42.763Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40299","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40299","licence":"Public domain","modified":"2026-10-26T21:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:18.968Z","epss":{"score":0.00323,"percentile":0.27258,"date":"2026-12-02T12:00:21.000Z"}}