{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-28791","published":"2021-03-18T16:15:14.933000Z","last_modified":"2026-06-17T03:46:52.160000Z","status":"Modified","cvss":{"version":"3.1","score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-863"],"cpes":[{"criteria":"cpe:2.3:a:swiftformat_project:swiftformat:*:*:*:*:*:visual_studio_code:*:*","part":"a","vendor":"swiftformat_project","product":"swiftformat","version_end_excluding":"1.3.7"}],"cpes_truncated":false,"vendors":["swiftformat_project"],"products":["swiftformat_project/swiftformat"],"epss":{"score":0.01624,"percentile":0.76552,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":47,"links":{"html_es":"/es/cve/CVE-2021-28791/","html_en":"/en/cve/CVE-2021-28791/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-28791","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-28791"},"untrusted":{"vendor_name":"Swiftformat Project","product_name":"Swiftformat","desc_en":"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":[],"references":[{"url":"https://github.com/vknabel/vscode-swiftformat/releases/tag/1.3.7","tags":["Release Notes","Third Party Advisory"]},{"url":"https://vuln.ryotak.me/advisories/13","tags":["Third Party Advisory"]}]}}