CVE-2026-40299: CWE-601: URL Redirection to Untrusted Site ('Open Redirect') in amannn next-intl
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`.
AI Analysis
Technical Summary
The next-intl middleware for Next.js, before version 4.9.1, when configured with localePrefix: 'as-needed', improperly handles certain relative redirect URLs. Specifically, the combination of path handling and the WHATWG URL parser can cause redirects to external hosts via scheme-relative URLs (e.g., starting with '//') or through control characters stripped by the parser. This results in an open redirect vulnerability (CWE-601) that could redirect users from a trusted application URL to an untrusted site. The vulnerability is fixed in next-intl@4.9.1.
Potential Impact
An attacker can craft URLs that cause the next-intl middleware to redirect users to arbitrary external websites without user interaction or privileges. This can be used for phishing or redirecting users to malicious sites, potentially undermining user trust in the affected application. The CVSS 4.0 base score is 6.9, indicating a medium severity vulnerability with network attack vector, no privileges or user interaction required, and limited impact on integrity.
Mitigation Recommendations
Upgrade the next-intl package to version 4.9.1 or later, where this open redirect vulnerability has been patched. Since the vendor advisory indicates the problem has been fixed in version 4.9.1, applying this official fix is the recommended remediation. Patch status is confirmed by the vendor advisory statement.
CVE-2026-40299: CWE-601: URL Redirection to Untrusted Site ('Open Redirect') in amannn next-intl
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`.
CVSS v4.0
Score 6.9medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The next-intl middleware for Next.js, before version 4.9.1, when configured with localePrefix: 'as-needed', improperly handles certain relative redirect URLs. Specifically, the combination of path handling and the WHATWG URL parser can cause redirects to external hosts via scheme-relative URLs (e.g., starting with '//') or through control characters stripped by the parser. This results in an open redirect vulnerability (CWE-601) that could redirect users from a trusted application URL to an untrusted site. The vulnerability is fixed in next-intl@4.9.1.
Potential Impact
An attacker can craft URLs that cause the next-intl middleware to redirect users to arbitrary external websites without user interaction or privileges. This can be used for phishing or redirecting users to malicious sites, potentially undermining user trust in the affected application. The CVSS 4.0 base score is 6.9, indicating a medium severity vulnerability with network attack vector, no privileges or user interaction required, and limited impact on integrity.
Mitigation Recommendations
Upgrade the next-intl package to version 4.9.1 or later, where this open redirect vulnerability has been patched. Since the vendor advisory indicates the problem has been fixed in version 4.9.1, applying this official fix is the recommended remediation. Patch status is confirmed by the vendor advisory statement.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-10T20:22:44.035Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e2a136bdfbbecc5990835c
Added to database: 4/17/2026, 9:08:06 PM
Last enriched: 4/25/2026, 2:54:18 AM
Last updated: 6/5/2026, 6:00:05 AM
Views: 83
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.