# CVE-2021-22568: Dart - Publishing to third-party package repositories may expose pub.dev credentials

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-12-09 · Modified: 2024-08-03
- Record: https://cvemate.com/vulnerability/CVE-2021-22568 · JSON: https://cvemate.com/vulnerability/CVE-2021-22568/json

## Description

```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
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L
- EPSS: 0.937%, percentile 62.059%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- dart dart\_software\_development\_kit: \< 2.15.0
- google llc dart sdk: ≥ unspecified, \< 2.15.0

## References

- <https://github.com/dart-lang/sdk/commit/d787e78d21e12ec1ef712d229940b1172aafcdf8>
- <https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md>
- <https://github.com/dart-lang/sdk/security/advisories/GHSA-r32f-vhjp-qhj7>

---

Data as of 2026-12-05T06:19:43.293Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
