CVE-2021-22568
published high CVSS 3.1 · 8.8Dart - Publishing to third-party package repositories may expose pub.dev credentials
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Google LLC | — | Dart SDKunspecified to < 2.15.0 | Affected | Not stated |
Description
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
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- Google · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Google LLC | Dart SDK | unspecified to < 2.15.0 (affected · custom) | Google · cna |
Weaknesses
1- CWE-255 CWE-255 Credentials Management
References
3Provider assertions
2Google · cna
Dart - Publishing to third-party package repositories may expose pub.dev credentials
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 690f90815489b649d259782661b6bc01857c17511e64defaecceb16347f91dc6
- Ingested
- 23 Sep 2026, 07:52:45 UTC
- Source record
- Official CVE record