CVE-2021-22568

Dart - Publishing to third-party package repositories may expose pub.dev credentials

HIGH
8.8
CVSS Score
Published: December 9, 2021 at 05:05 PM UTC
Updated: June 17, 2026 at 03:37 AM UTC
1 product affected across 1 vendorDart Software Development Kit

Using Dart SDK by Google LLC?

Get instant alerts when new vulnerabilities affect Dart SDK - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 0.9%

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 2.15.0
Affected range stops below 2.15.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

CVSS

8.8HIGHGoogle
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
HIGH
Availability
LOW
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-255CWE-668

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card