CVE-2021-22568
HIGH
Published Dec 9, 20214y ago · Modified Jun 17, 20262w ago
8.8 CVSS 3.1
Published Dec 9, 2021 4y ago
Last Modified Jun 17, 2026 2w ago
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
CVSS Details
Base Score
Exploitability
Impact
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction Required
Scope Changed
Confidentiality Low
Integrity High
Availability Low
Threat Intelligence
No active exploitation signals — not in CISA KEV and no EPSS score yet.
Exploit & Patch Status
No Known Exploit
Patch Available
Weaknesses 2
CWE-255
CWE-668
Affected Products 1
| Vendor | Product | Version | Range |
|---|---|---|---|
| dart | dart_software_development_kit | * | <2.15.0 |
References 3
- github.com https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md
- github.com https://github.com/dart-lang/sdk/commit/d787e78d21e12ec1ef712d229940b1172aafcdf8
- github.com https://github.com/dart-lang/sdk/security/advisories/GHSA-r32f-vhjp-qhj7
Remediation
- github.com https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md
- github.com https://github.com/dart-lang/sdk/commit/d787e78d21e12ec1ef712d229940b1172aafcdf8