GHSA-8f24-v5vv-gm5j

Suggest an improvement
Source
https://github.com/advisories/GHSA-8f24-v5vv-gm5j
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-8f24-v5vv-gm5j/GHSA-8f24-v5vv-gm5j.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-8f24-v5vv-gm5j
Aliases
  • CVE-2026-40299
Published
2026-04-10T21:03:55Z
Modified
2026-05-05T16:04:42.763137Z
Severity
  • 6.9 (Medium) CVSS_V4 - 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 CVSS Calculator
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 next-intl@4.9.1.

Credits

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

Database specific
{
    "cwe_ids": [
        "CWE-601"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-04-10T21:03:55Z",
    "nvd_published_at": "2026-04-17T21:16:34Z",
    "severity": "MODERATE"
}
References

Affected packages

npm / next-intl

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.9.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-8f24-v5vv-gm5j/GHSA-8f24-v5vv-gm5j.json"