High
Security advisory
The unofficial SwiftLint extension before 1.4.5 for Visual Studio Code allows remote attackers to execute arbitrary code by constructing a malicious workspace with a crafted swiftlint.path configuration value that triggers execution upon opening the workspace.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-28790
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:43 UTC · Revision 1
Source evidence
The unofficial SwiftLint extension before 1.4.5 for Visual Studio Code allows remote attackers to execute arbitrary code by constructing a malicious workspace with a crafted swiftlint.path configuration value that triggers execution upon opening the workspace.
osv:CVE-2021-28790
Complete source record
{
"id": "8aca0e5803b54d880219bc370cd09ba3ae8a569bfabb6bb0272cdd68e5a85e7c",
"url": "https://osv.dev/vulnerability/CVE-2021-28790",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-28790",
"summary": "The unofficial SwiftLint extension before 1.4.5 for Visual Studio Code allows remote attackers to execute arbitrary code by constructing a malicious workspace with a crafted swiftlint.path configuration value that triggers execution upon opening the workspace.",
"evidence": "osv:CVE-2021-28790",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-28790",
"aliases": [
"CVE-2021-28790"
],
"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-swiftlint",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "e019036e8fd7a0652f8ee423e875f3f8ea1ea417"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:swiftlint_project:swiftlint:*:*:*:*:*:visual_studio_code:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.4.5"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "e019036e8fd7a0652f8ee423e875f3f8ea1ea417"
}
],
"source": "REFERENCES_TAG",
"original_tag": "1.4.5"
}
]
}
}
],
"versions": [
"1.4.4",
"1.4.3",
"1.4.2",
"1.4.1",
"1.4.0",
"1.3.0",
"1.2.7",
"1.2.7-beta.0",
"1.2.5",
"1.2.4",
"1.2.3",
"1.2.2",
"1.2.1",
"1.2.0",
"1.1.0",
"1.0.5",
"1.0.4",
"1.0.3",
"1.0.2",
"1.0.1",
"1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-28790.json"
}
}
],
"modified": "2026-10-20T10:54:36.666511418Z",
"provider": "osv",
"references": [
"https://github.com/vknabel/vscode-swiftlint/releases/tag/1.4.5",
"https://vuln.ryotak.me/advisories/12"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-28790",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 385721,
"published_at": "2021-03-18T16:15:14.873+00:00"
}