CVE-2021-28791

High

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.

SeverityHigh
CVSS7.8
Exploit probability—
ProductSwiftformat
PublishedMar 18, 2021
First seenMar 18, 2021

How to fix

Update
  • swiftformat_project swiftformat1.3.7 or later

Affected products

ProductAffected versionsFixed in
swiftformat_project swiftformatv < 1.3.71.3.7

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2021-28791 · Swiftformat · Dark Radar