VDB
Sign up
MEDIUM

GHSA-8f24-v5vv-gm5j

next-intl has an open redirect vulnerability

Quick fix

GHSA-8f24-v5vv-gm5j — next-intl: upgrade to the fixed version with the command below.

npm install next-intl@4.9.1

Details

### 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 [`next-intl@4.9.1`](https://github.com/amannn/next-intl/releases/tag/v4.9.1).

### Credits

Many thanks to [Joni Liljeblad](https://github.com/joniumGit) from [Oura](https://ouraring.com) for responsibly disclosing the vulnerability and for suggesting the fix.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/next-intl
Introduced in: 0Fixed in: 4.9.1
Fixnpm install next-intl@4.9.1

References