CVE-2021-21415

Visual Studio Code Prisma Extension Remote Code Execution Vulnerability

HIGH
7.8
CVSS Score
Published: April 29, 2021 at 04:50 PM UTC
Updated: June 17, 2026 at 03:35 AM UTC
1 product affected across 1 vendorLanguage Tools

Using language-tools by prisma?

Get instant alerts when new vulnerabilities affect language-tools - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 2%

Description

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

Language Tools· Prismavscode-extension
95%
v < 2.20.0v < 20.0.27
Affected range stops below 2.20.0, so it looks safe — our inference, not a vendor statement
Affected range stops below 20.0.27, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

CVSS

7.8HIGHGitHub_M
Attack Vector
LOCAL
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-94NVD-CWE-Other

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card