CVE-2021-28791 describes a critical vulnerability in unofficial SwiftFormat extensions for Visual Studio Code prior to version 1.3.7, allowing remote attackers to execute arbitrary code. By crafting a malicious workspace with a specially designed swiftformat.path configuration, an attacker can trigger code execution when a user opens the workspace. This vulnerability carries a high CVSS score of 7.8, indicating a high impact on confidentiality, integrity, and availability, with a low attack complexity requiring user interaction. Currently, there is no evidence of active exploitation, public exploit code, or significant community discussion, suggesting it is not widely targeted.
| Vendor | Product | Version(s) | CPE |
|---|---|---|---|
< 1.3.7CPE matchmatch criteria | cpe:2.3:a:swiftformat_project:swiftformat:*:*:*:*:*:visual_studio_code:*:* |
CVSS version used by this source: 3.1
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
The average CVE in this peer group has 0.0 Twitter, 0.1 Reddit, 0.1 Bluesky, 0.0 Mastodon, and 0.2 GitHub mentions.
No media coverage found for this CVE.
The average CVE in this peer group has 0.3 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.
Remediation records are not available for this CVE.