{"id":"CVE-2021-28791","details":"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.","modified":"2026-07-09T01:30:27.088574Z","published":"2021-03-18T16:15:14.933Z","references":[{"type":"ADVISORY","url":"https://github.com/vknabel/vscode-swiftformat/releases/tag/1.3.7"},{"type":"ADVISORY","url":"https://vuln.ryotak.me/advisories/13"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/vknabel/vscode-swiftformat","events":[{"introduced":"0"},{"fixed":"0e950047009ca8fcac3b448468cf7c459aade083"}],"database_specific":{"cpe":"cpe:2.3:a:swiftformat_project:swiftformat:*:*:*:*:*:visual_studio_code:*:*","extracted_events":[{"introduced":"0"},{"fixed":"1.3.7"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["1.3.6","1.3.5","1.3.4","1.3.3","1.3.2","1.3.1","1.3.0","1.2.2","1.2.1","1.2.0","1.1.3","1.1.2","1.1.1","1.1.0","1.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-28791.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}