CVE-2021-39178

    Dashboard / Vulnerabilities / CVE-2021-39178

    CVE-2021-39178

    Published: 31 Aug 2021Last Modified: 9 Jul 2026

    Summary:

    Details: 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 packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: GIT

    Events:

    Introduced- 118ab7992bc8f7a7e5a7bb996510d9b56ffe4f68

    Affected versions

    v11.1.1-canary.19
    v11.1.1-canary.18
    v11.1.1-canary.17
    v11.1.1-canary.16
    v11.1.1-canary.15
    v11.1.1-canary.14
    v11.1.1-canary.13
    v11.1.1-canary.12
    v11.1.1-canary.11
    v11.1.1-canary.10
    v11.1.1-canary.9
    v11.1.1-canary.8
    v11.1.1-canary.7
    v11.1.1-canary.6
    v11.1.1-canary.5
    v11.1.1-canary.4
    v11.1.1-canary.3
    v11.1.1-canary.2
    v11.1.1-canary.1
    v11.1.1-canary.0
    v11.1.0

    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
    CVE-2021-39178 | CVE-DB