High
Security advisory
The unofficial apple/swift-format extension before 1.1.2 for Visual Studio Code allows remote attackers to execute arbitrary code by constructing a malicious workspace with a crafted apple-swift-format.path configuration value that triggers execution upon opening the workspace.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-28789
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:43 UTC · Revision 1
Source evidence
The unofficial apple/swift-format extension before 1.1.2 for Visual Studio Code allows remote attackers to execute arbitrary code by constructing a malicious workspace with a crafted apple-swift-format.path configuration value that triggers execution upon opening the workspace.
osv:CVE-2021-28789
Complete source record
{
"id": "cddb48227608e511b6385c58f8a5ed4f3f7b2697b15bec97e996f4f2942b3050",
"url": "https://osv.dev/vulnerability/CVE-2021-28789",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-28789",
"summary": "The unofficial apple/swift-format extension before 1.1.2 for Visual Studio Code allows remote attackers to execute arbitrary code by constructing a malicious workspace with a crafted apple-swift-format.path configuration value that triggers execution upon opening the workspace.",
"evidence": "osv:CVE-2021-28789",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-28789",
"aliases": [
"CVE-2021-28789"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/vknabel/vscode-apple-swift-format",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "87a1206c54eb149b400604480ff774d9f05faed2"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:apple-swift-format_project:apple-swift-format:*:*:*:*:*:visual_studio:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.1.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "87a1206c54eb149b400604480ff774d9f05faed2"
}
],
"source": "REFERENCES_TAG",
"original_tag": "1.1.2"
}
]
}
}
],
"versions": [
"1.1.1",
"1.1.0",
"1.0.2",
"1.0.1",
"1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-28789.json"
}
}
],
"modified": "2026-10-20T10:54:36.746581226Z",
"provider": "osv",
"references": [
"https://github.com/vknabel/vscode-apple-swift-format/releases/tag/1.1.2",
"https://vuln.ryotak.me/advisories/11"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-28789",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 385727,
"published_at": "2021-03-18T16:15:14.81+00:00"
}