{"id":"CVE-2021-22568","aliases":["CVE-2021-22568"],"related":[],"kind":"vulnerability","state":"published","title":"Dart - Publishing to third-party package repositories may expose pub.dev credentials","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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","source":"cvelist"},{"lang":"es","text":"Cuando es usado el comando dart pub publish para publicar un paquete en un servidor de paquetes de terceros, la petición se autentifica con un access_token oauth2 válido para publicar en pub.dev. Usando estas credenciales obtenidas, un atacante puede suplantar al usuario en pub.dev. Se recomienda actualizar a partir de https://github.com/dart-lang/sdk/commit/d787e78d21e12ec1ef712d229940b1172aafcdf8 o de la versión 2.15","source":"nvd"}],"published":"2021-12-09T17:05:12.000Z","modified":"2026-06-17T03:37:26.600Z","severity":{"scorer":"Google","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Google","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:P/I:P/A:P","score":6,"rating":"MEDIUM"}],"cwes":["CWE-255","CWE-668"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"2.15.0","status":"affected"}],"vendor":"Google LLC","product":"Dart SDK","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"2.15.0"}],"vendor":"dart","product":"dart_software_development_kit","cpe":"cpe:2.3:a:dart:dart_software_development_kit:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/dart-lang/sdk/commit/d787e78d21e12ec1ef712d229940b1172aafcdf8","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/dart-lang/sdk/security/advisories/GHSA-r32f-vhjp-qhj7","tags":["issue-tracking","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Google","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-22568","url":"https://www.cve.org/CVERecord?id=CVE-2021-22568","licence":"CVE Terms of Use","modified":"2024-08-03T18:44:14.137Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-22568","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22568","licence":"Public domain","modified":"2026-06-17T03:37:26.600Z"}],"updatedAt":"2026-11-25T22:58:05.912Z","epss":{"score":0.00937,"percentile":0.61882,"date":"2026-12-01T12:00:22.000Z"}}