PT-2021-17917
CVE-2021-28791
·
Published
2021-03-18
·
Updated
2021-04-22
Description by
CVSS 3.1
7.8
HighMetricsAV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions:
SwiftFormat extension for Visual Studio Code versions prior to 1.3.7
Description:
The issue 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. This can be achieved by exploiting the vulnerability in the SwiftFormat extension for Visual Studio Code.Recommendations:
For versions prior to 1.3.7, update to version 1.3.7 or later to resolve the issue. As a temporary workaround, consider restricting the use of the
swiftformat.path configuration value to minimize the risk of exploitation. Found an issue in the description? Have something to add? Feel free to write us 👾