CVE-2021-22568 in Dart Software Development Kit
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://...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, can impact systems beyond the vulnerable component, full integrity impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Dart | Dart Software Development Kit | < 2.15.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-22568 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-242099-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L |
| Published | 2021-12-09 |
| Last modified | 2024-11-21 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-255: CWE-255
CWE-668: CWE-668
Analysis AI-written, not human-reviewed
A vulnerability in the dart pub publish command allows an attacker to impersonate a user on pub.dev by using an obtained OAuth2 access_token.
The vulnerability occurs when the dart pub publish command is used to publish a package to a third-party package server. The request is authenticated with an OAuth2 access_token that is valid for publishing on pub.dev. An attacker can exploit this to impersonate the user.
Questions
What is CVE-2021-22568?
A vulnerability in the dart pub publish command allows an attacker to impersonate a user on pub.dev by using an obtained OAuth2 access_token.
What is the CVSS score for CVE-2021-22568?
CVE-2021-22568 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L. EPSS: 0.9%.
Is CVE-2021-22568 actively exploited?
No confirmed active exploitation of CVE-2021-22568 as of 2026-05-30.
How do I remediate CVE-2021-22568?
Priority: IMMEDIATE.
What systems are affected by CVE-2021-22568?
CVE-2021-22568 affects Dart Dart Software Development Kit.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Dart","product":"Dart Software Development Kit","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2024-11-21.