{"id":"GHSA-8f24-v5vv-gm5j","revision":"c17ce94105b24e67864e7289adad31ab","records":[{"revision":"c17ce94105b24e67864e7289adad31ab","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-8f24-v5vv-gm5j","aliases":["CVE-2026-40299"],"title":"next-intl has an open redirect vulnerability","description":"### 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.","state":0,"publishedAt":"2026-04-10T21:03:55+00:00","modifiedAt":"2026-05-05T16:04:42.763137+00:00","affected":[{"ecosystem":"npm","name":"next-intl","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"4.9.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","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":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/amannn/next-intl/security/advisories/GHSA-8f24-v5vv-gm5j","https://nvd.nist.gov/vuln/detail/CVE-2026-40299","https://github.com/amannn/next-intl/pull/2304","https://github.com/amannn/next-intl/commit/1c80b668aa6d853f470319eec10a3f61e78a70e6","https://github.com/amannn/next-intl","https://github.com/amannn/next-intl/releases/tag/v4.9.1"],"sourceUrl":"https://github.com/advisories/GHSA-8f24-v5vv-gm5j","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-8f24-v5vv-gm5j","identifiers":["GHSA-8f24-v5vv-gm5j","CVE-2026-40299"]},"retained":false,"historicalAffected":[]}],"coverage":[]}