XSS in Image Optimization API for Next.js versions between 10.0.0 and 11.1.0

Check todayFull system takeover over the network if a user is tricked.
7.5HIGH

CVE-2021-39178

Key Information:

Vendor

Vercel

Status
CVE ID
CVE ID:
CVE-2021-39178
Vendor
CVE Published:
31 August 2021

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • Partly: Works over the network, but a user must act
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Check today

Find out if you're affected. If you are, patch.

What to do

1Check the vendor's fix

No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.

Read the vendor advisory β†—
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach Next.js. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Check today"
  • Its CVSS severity is high (7.5).

What is CVE-2021-39178?

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.

Affected Version(s)

next.js >= 10.0.0, < 11.1.1

References

SVG Injection in Satori Library

CVE-2026-94545
VercelSatoriπŸ˜„πŸ‘Ύ5.3MEDIUM

Path Traversal in Next.js Framework

CVE-2026-75604
VercelNext.jsπŸ˜„πŸ‘Ύ9CRITICAL

Server-Side Request Forgery in Next.js

CVE-2026-44578
VercelNext.jsπŸ”₯πŸ˜„πŸ‘Ύ8.6HIGH
View more Vercel vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities Β· Report a correction

CVSS V3.1

Score:
7.5
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
Required
Scope:
Unchanged
.