CVE-2021-21415
published high CVSS 3.1 · 7.8Visual Studio Code Prisma Extension Remote Code Execution Vulnerability
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| prisma | — | language-tools>= 2.1.0, < 2.20.0 · < 20.0.27 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| prisma | language-tools | >= 2.1.0, < 2.20.0 (affected)< 20.0.27 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-94 {"CWE-94":"Improper Control of Generation of Code ('Code Injection')"}
References
4Provider assertions
2GitHub_M · cna
Visual Studio Code Prisma Extension Remote Code Execution Vulnerability
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 9dbb32028527c4616c5202f8c112646aa9397163bb5da730cb306ea4dbae50f5
- Ingested
- 23 Sep 2026, 07:52:31 UTC
- Source record
- Official CVE record