Description
Next.js versions >=9.5.0 and <9.5.4 are vulnerable to an Open Redirect. Specially encoded paths could be used with the trailing slash redirect to allow an open redirect to occur to an external site. In general, this redirect does not directly harm users although can allow for phishing attacks by redirecting to an attackers domain from a trusted domain. The issue is fixed in version 9.5.4.
Remediation
References
https://github.com/vercel/next.js/security/advisories/GHSA-x56p-c8cg-q435
https://github.com/zeit/next.js/releases/tag/v9.5.4
Related Vulnerabilities
CVE-2022-24822 Vulnerability in npm package @podium/layout
CVE-2021-23432 Vulnerability in npm package mootools
CVE-2022-41934 Vulnerability in maven package org.xwiki.platform:xwiki-platform-menu-ui
CVE-2022-41940 Vulnerability in maven package org.webjars.bower:engine.io
CVE-2019-1003050 Vulnerability in maven package org.jenkins-ci.main:jenkins-core