CVEvulnerability
CVE-2021-28791
7.8 HIGH
Official page ↗
- Status
- Modified
- Published
- 2021-03-18
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CVSS 2.0 ([email protected])
- 6.8 MEDIUM — AV:N/AC:M/Au:N/C:P/I:P/A:P
- Weaknesses
- 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 configurations
• swiftformat project swiftformat (< 1.3.7)
Related
Weakness · CWE (1)
- CWE-863 Incorrect Authorization weakness
References
- https://github.com/vknabel/vscode-swiftformat/releases/tag/1.3.7 Release Notes, Third Party Advisory
- https://vuln.ryotak.me/advisories/13 Third Party Advisory
- https://github.com/vknabel/vscode-swiftformat/releases/tag/1.3.7 Release Notes, Third Party Advisory
- https://vuln.ryotak.me/advisories/13 Third Party Advisory