{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:dart:dart_software_development_kit:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.15.0"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "3d2629cd0310df74bdf260d828ed3c75f25db889"
            },
            {
              "fixed": "d787e78d21e12ec1ef712d229940b1172aafcdf8"
            }
          ],
          "repo": "https://github.com/dart-lang/sdk",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-r32f-vhjp-qhj7"
  ],
  "database_specific": {},
  "details": "When using the dart pub publish command to publish a package to a third-party package server, the request would be authenticated with an oauth2 access_token that is valid for publishing on pub.dev. Using these obtained credentials, an attacker can impersonate the user on pub.dev. We recommend upgrading past https://github.com/dart-lang/sdk/commit/d787e78d21e12ec1ef712d229940b1172aafcdf8 or beyond version 2.15.0",
  "id": "CVE-2021-22568",
  "modified": "2026-07-08T05:39:18.208654193Z",
  "published": "2021-12-09T17:15:07.567Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://github.com/dart-lang/sdk/security/advisories/GHSA-r32f-vhjp-qhj7"
    },
    {
      "type": "FIX",
      "url": "https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md"
    },
    {
      "type": "FIX",
      "url": "https://github.com/dart-lang/sdk/commit/d787e78d21e12ec1ef712d229940b1172aafcdf8"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L",
      "type": "CVSS_V3"
    }
  ]
}