What’s Vulnerable › Vulnerabilities
CVE-2021-28791
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-03-18 · updated 2026-06-17
- Weakness: CWE-863
Description
The unofficial SwiftFormat extension before 1.3.7 for Visual Studio Code allows remote attackers to execute arbitrary code by constructing a malicious workspace with a crafted swiftformat.path configuration value that triggers execution upon opening the workspace.
Affected products
- Swiftformat Project Swiftformat: before 1.3.7 — fixed in 1.3.7
How to fix
Upgrade to a fixed version: Swiftformat Project Swiftformat 1.3.7. Check the vendor advisory for mitigations.
References
- https://github.com/vknabel/vscode-swiftformat/releases/tag/1.3.7
- https://vuln.ryotak.me/advisories/13
- https://github.com/vknabel/vscode-swiftformat/releases/tag/1.3.7
- https://vuln.ryotak.me/advisories/13
Get alerted when CVE-2021-28791 or the next vulnerability affects your stack