First published: Mon Aug 30 2021(Updated: )
Next.js is a React framework. Versions of Next.js between 10.0.0 and 11.0.0 contain a cross-site scripting vulnerability. In order for an instance to be affected by the vulnerability, the `next.config.js` file must have `images.domains` array assigned and the image host assigned in `images.domains` must allow user-provided SVG. If the `next.config.js` file has `images.loader` assigned to something other than default or the instance is deployed on Vercel, the instance is not affected by the vulnerability. The vulnerability is patched in Next.js version 11.1.1.
Credit: security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
Vercel Next.js | >=10.0.0<11.1.1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2021-39178 is a cross-site scripting vulnerability in Next.js versions between 10.0.0 and 11.0.0.
CVE-2021-39178 has a severity rating of 6.1, which is considered high.
CVE-2021-39178 can allow attackers to perform cross-site scripting attacks on instances of Next.js.
To fix CVE-2021-39178, you should upgrade Next.js to version 11.1.1 or higher, which includes a fix for the vulnerability.
You can find more information about CVE-2021-39178 on the Next.js GitHub page and the associated security advisory.