Intel

AIKIDO-2024-10191

next-intl is vulnerable to URL Redirection to Untrusted Site ('Open Redirect')

URL Redirection to Untrusted Site ('Open Redirect') Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 19, 2024

80

High Risk

This Affects:

JSnext-intl
3.11.0 - 3.17.1
Fixed in 3.17.2
Are you affected? Scan for Free

TL;DR

Affected versions of the next-intl library are vulnerable to open redirect. The library accepts user-controlled input that specifies a link to an external site and uses it in a redirect, facilitating phishing attacks. The vulnerability occurs because decodeURI does not escape decoded backslashes (%5C & %5c), leading to unsafe external pathnames in the middleware functionality.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

next-intl is vulnerable to URL Redirection to Untrusted Site ('Open Redirect') in versions 3.11.0 - 3.17.1.

How to fix this

Upgrade the next-intl library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform