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