CVE-2021-28791
Swiftformat Project Swiftformat vulnerability
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 products
Swiftformat. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Swiftformat Project Swiftformat runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/vknabel/vscode-swiftformat/releases/tag/1.3.7 · Third Party Advisory
- vuln.ryotak.me/advisories/13 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-28791
- cve.org/CVERecord?id=CVE-2021-28791
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.