CVE-2021-22568: Dart - Publishing to third-party package repositories may expose pub.dev credentials
Vulnerability summary
CVE-2021-22568 is a high (CVSS 8.8) Credentials Management Errors vulnerability in dart dart_software_development_kit. EPSS estimates a 0.94% chance of exploitation in the next 30 days, higher than 62% of scored vulnerabilities.
Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 09-12-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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 metrics
3 scores · 2 sources · 2 versions- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L
EPSS trend
Probability
0.94%
Chance of exploitation in the next 30 days
Percentile
62%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.94% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Dart1 product
- dart_software_development_kit< 2.15.0
Google llc1 product
- dart sdk≥ unspecified, < 2.15.0
2 vendors · 2 products
References
3 links- github.com/dart-lang/sdk/commit/d787e78d21e12ec1ef712d229940b1172aafcdf8X Refsource MISCPatchThird Party Advisory