# CVE-2026-40299: next-intl has an open redirect vulnerability

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-02)
- Published: 2026-04-10T21:03:55.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-8f24-v5vv-gm5j
- Weaknesses: CWE-601
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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`.

(As written by CVE List.)

## Affected

- amannn next-intl: < 4.9.1
- next-intl (npm): before 4.9.1

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/amannn/next-intl/security/advisories/GHSA-8f24-v5vv-gm5j> (web)
- <https://github.com/amannn/next-intl/pull/2304> (web)
- <https://github.com/amannn/next-intl/commit/1c80b668aa6d853f470319eec10a3f61e78a70e6> (web)
- <https://github.com/amannn/next-intl/releases/tag/v4.9.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40299> (advisory)
- <https://github.com/amannn/next-intl> (package)

## Sources

- CVE List: [CVE-2026-40299](https://www.cve.org/CVERecord?id=CVE-2026-40299), CVE Terms of Use, modified 2026-04-20
- GitHub Advisory Database: [GHSA-8f24-v5vv-gm5j](https://github.com/advisories/GHSA-8f24-v5vv-gm5j), CC-BY-4.0, modified 2026-05-05
- NVD: [CVE-2026-40299](https://nvd.nist.gov/vuln/detail/CVE-2026-40299), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40299 · Whole record: https://cve.day/CVE-2026-40299.json · Rebuilt by cve.day 2026-11-25T22:59:18.968Z
