CVE-2021-21415

    Dashboard / Vulnerabilities / CVE-2021-21415

    CVE-2021-21415

    Published: 29 Apr 2021Last Modified: 9 Jul 2026

    Summary:

    Details: Prisma VS Code a VSCode extension for Prisma schema files. This is a Remote Code Execution Vulnerability that affects all versions of the Prisma VS Code extension older than 2.20.0. If a custom binary path for the Prisma format binary is set in VS Code Settings, for example by downloading a project that has a .vscode/settings.json file that sets a value for "prismaFmtBinPath". That custom binary is executed when auto-formatting is triggered by VS Code or when validation checks are triggered after each keypress on a *.prisma file. Fixed in versions 2.20.0 and 20.0.27. As a workaround users can either edit or delete the `.vscode/settings.json` file or check if the binary is malicious and delete it.

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: GIT

    Events:

    Affected versions

    insider/20.0.51
    insider/20.0.50
    insider/20.0.49
    insider/20.0.48
    insider/20.0.47
    insider/20.0.46
    insider/20.0.45
    insider/20.0.44
    insider/20.0.42
    insider/20.0.41
    insider/20.0.40
    insider/20.0.39
    insider/20.0.37
    insider/20.0.38
    insider/20.0.36
    insider/20.0.35
    insider/20.0.34
    insider/20.0.33
    insider/20.0.32
    insider/20.0.31
    insider/20.0.30
    insider/20.0.29
    insider/20.0.28
    insider/20.0.27
    insider/20.0.26
    insider/20.0.25
    insider/20.0.23
    insider/20.0.22
    insider/20.0.21
    insider/20.0.20
    insider/20.0.18
    insider/20.0.17
    insider/20.0.16
    insider/20.0.14
    insider/20.0.13
    insider/20.0.12
    insider/20.0.11
    insider/20.0.10
    insider/20.0.9
    insider/20.0.8
    insider/20.0.7
    insider/20.0.6
    insider/20.0.5
    insider/20.0.4
    insider/20.0.3
    insider/20.0.2

    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-21415 | CVE-DB