{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.1.2"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "87a1206c54eb149b400604480ff774d9f05faed2"
            }
          ],
          "repo": "https://github.com/vknabel/vscode-apple-swift-format",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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.",
  "id": "CVE-2021-28789",
  "modified": "2026-03-13T21:50:47.382787688Z",
  "published": "2021-03-18T16:15:14.810Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/vknabel/vscode-apple-swift-format/releases/tag/1.1.2"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuln.ryotak.me/advisories/11"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}