GHSA-9gr3-7897-pp7m

    Dashboard / Vulnerabilities / GHSA-9gr3-7897-pp7m

    GHSA-9gr3-7897-pp7m

    Published: 1 Sept 2021Last Modified: 8 Jul 2026

    Summary: XSS in Image Optimization API for Next.js

    Details: ### 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)

    Affected packages

    Package

    Name: next

    Purl: pkg:npm/next

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 10.0.0
    Fixed -11.1.1

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-9gr3-7897-pp7m | CVE-DB