next-intl
Affected
- introduced
0, fixed4.9.1(semver)
Fixed versions
4.9.1
Fix
- Fixed version
4.9.1npm install [email protected]
Advisory
Also known as: CVE-2026-40299
next-intl has an open redirect vulnerability
Impact
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.
Patches
The problem has been patched, please update to `[email protected]`.
Credits
Many thanks to Joni Liljeblad from Oura for responsibly disclosing the vulnerability and for suggesting the fix.
Medium Basis: The source's own band: MODERATE
0, fixed 4.9.1 (semver)4.9.1
4.9.1npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0