Advisory

GHSA-8f24-v5vv-gm5j

Also known as: CVE-2026-40299

Summary

next-intl has an open redirect vulnerability

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 `[email protected]`.

Credits

Many thanks to Joni Liljeblad from Oura for responsibly disclosing the vulnerability and for suggesting the fix.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-04-10 21:03 UTC
Modified
2026-05-05 16:04 UTC

Affected packages and fixes

next-intl

npm · All systems

Affected

  • introduced 0, fixed 4.9.1 (semver)

Fixed versions

4.9.1

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences