Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 81%

CVE-2026-40299: CWE-601: URL Redirection to Untrusted Site ('Open Redirect') in amannn next-intl

0
Medium
VulnerabilityCVE-2026-40299cvecve-2026-40299cwe-601
Published: Fri Apr 17 2026 (04/17/2026, 20:49:05 UTC)
Source: CVE Database V5
Vendor/Project: amannn
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/25/2026, 02:54:18 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses