logo

CVE-2021-39178 next

Package

Manager: npm
Name: next
Vulnerable Version: >=10.0.0 <11.1.1

Severity

Level: High

CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

EPSS: 0.007 pctl0.71121

Details

XSS in Image Optimization API for Next.js ### Impact - **Affected:** All of the following must be true to be affected - Next.js between version 10.0.0 and 11.1.0 - The `next.config.js` file has [`images.domains`](https://nextjs.org/docs/basic-features/image-optimization#domains) array assigned - The image host assigned in [`images.domains`](https://nextjs.org/docs/basic-features/image-optimization#domains) allows user-provided SVG - **Not affected**: The `next.config.js` file has [`images.loader`](https://nextjs.org/docs/basic-features/image-optimization#loader) assigned to something other than default - **Not affected**: Deployments on [Vercel](https://vercel.com) are not affected ### Patches [Next.js v11.1.1](https://github.com/vercel/next.js/releases/tag/v11.1.1)

Metadata

Created: 2021-09-01T18:24:22Z
Modified: 2021-08-31T20:01:51Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-9gr3-7897-pp7m/GHSA-9gr3-7897-pp7m.json
CWE IDs: ["CWE-79"]
Alternative ID: GHSA-9gr3-7897-pp7m
Finding: F008
Auto approve: 1