CVE-2021-39178: vercel next.js Cross-site Scripting
Vulnerability summary
CVE-2021-39178 is a high (CVSS 7.5) Cross-site Scripting vulnerability in vercel next.js. EPSS estimates a 1.14% chance of exploitation in the next 30 days, higher than 66.1% of scored vulnerabilities.
Timeline
- 30-08-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · NpmEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NDiffers
EPSS trend
Probability
1.14%
Chance of exploitation in the next 30 days
Percentile
66%
Versus all other CVEs
30-day change
0.00 pp
From 1.14% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Npm1 product
- next≥ 10.0.0, < 11.1.1
Vercel1 product
- next.js≥ 10.0.0, < 11.1.1
2 vendors · 2 products
References
6 links- github.com/vercel/next.js/security/advisories/GHSA-9gr3-7897-pp7mX Refsource CONFIRMWEBPatchThird Party Advisory
- github.com/vercel/next.js/releases/tag/v11.1.1X Refsource MISCWEBPatchRelease NotesThird Party Advisory
- github.com/vercel/next.jsPACKAGE