7.5

CVE-2021-39178: vercel next.js Cross-site Scripting

CVSS: 7.5v3.1HighModified
AliasesGHSA-9gr3-7897-pp7m
Published 30-08-2021Last modified 04-08-2024

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.

Overall risk
30/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
1.14%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 30-08-2021
    PublishedVulnerability first disclosed.
  2. 04-08-2024
    Last 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

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

20-09-202620-10-2026
EPSS score
1.14%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Npm1 product
  • next≥ 10.0.0, < 11.1.1
Vercel1 product

2 vendors · 2 products

References

6 links