Auth bypass in Swiftformat Project
CVE-2021-28791
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.
Vulnerability class: Broken Access Control
EPSS: 0.016 (73.7th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
Affected products
- Swiftformat_project Swiftformat
- N/a — versions n/a
Weakness classification (CWE)
References
- cve@mitre.org (Third Party Advisory, x_refsource_MISC, Release Notes)
- cve@mitre.org (Third Party Advisory, x_refsource_MISC)
Frequently asked questions
- What is CVE-2021-28791?
- CVE-2021-28791 is a high-severity vulnerability in Swiftformat Project, classified under Incorrect Authorization. CVSS score: 7.8/10. Published 2021-03-18.
- How severe is CVE-2021-28791?
- High severity. CVSS v3 base score is 7.8 out of 10.