{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:swiftformat_project:swiftformat:*:*:*:*:*:visual_studio_code:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.3.7"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0e950047009ca8fcac3b448468cf7c459aade083"
            }
          ],
          "repo": "https://github.com/vknabel/vscode-swiftformat",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {},
  "details": "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.",
  "id": "CVE-2021-28791",
  "modified": "2026-07-08T05:37:53.595263255Z",
  "published": "2021-03-18T16:15:14.933Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/vknabel/vscode-swiftformat/releases/tag/1.3.7"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuln.ryotak.me/advisories/13"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}