Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. next-intl
  4. ›
  5. CVE-2026-40299

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

April 10, 2026 (updated April 24, 2026)

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

References

  • github.com/advisories/GHSA-8f24-v5vv-gm5j
  • 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
  • nvd.nist.gov/vuln/detail/CVE-2026-40299

Code Behaviors & Features

Detect and mitigate CVE-2026-40299 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.9.1

Fixed versions

  • 4.9.1

Solution

Upgrade to version 4.9.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

npm/next-intl/CVE-2026-40299.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:09 +0000.