Live threats

All CVEs / Vercel

CVE-2021-39178Vercel Next.js

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
1.1%
probability of exploitation in 30 days · percentile 66
Auth required
No
Published
Aug 31, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Next.js.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm next ≥ 10.0.0 < 11.1.1 11.1.1 npm install next@11.1.1

Per OSV / GitHub Advisories (GHSA-9gr3-7897-pp7m). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
vercelnext.js≥ 10.0.0 < 11.1.1

Official sources

References

Links published by the sources. Open them with care.