CVE-2026-27704
The Dart and Flutter SDKs provide software development kits for the Dart programming language.
Published Feb 25, 2026 · updated Jun 17, 2026 · dart dart software development kit
The Dart and Flutter SDKs provide software development kits for the Dart programming language. In versions of the Dart SDK prior to 3.11.0 and the Flutter SDK prior to version 3.41.0, when the pub client ( and ) extracts a package in the pub cache, a malicious package archive can have files extracted outside the destination directory in the . A fix has been landed in commit 26c6985c742593d081f8b58450f463a584a4203a. By normalizing the file path before writing file, the attacker can no longer traverse up via a symlink. This patch is released in Dart 3.11.0 and Flutter 3.41.0.vAll packages on pub.dev have been vetted for this vulnerability. New packages are no longer allowed to contain symlinks. The pub client itself doesn't upload symlinks, but duplicates the linked entry, and has been doing this for years. Those whose dependencies are all from pub.dev, third-party repositories trusted to not contain malicious code, or git dependencies are not affected by this vulnerability.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Feb 25, 2026 · NIST NVD
Detected
The Dart and Flutter SDKs provide software development kits for the Dart programming language. In versions of the Dart SDK prior to 3.11.0 and the Flutter SDK prior to version 3.41.0, when the pub client ( and ) extracts a package in the pub cache, a malicious package archive can have files extracted outside the destination directory in the . A fix has been landed in commit 26c6985c742593d081f8b58
Jun 17, 2026 · NIST NVD
Updated
The Dart and Flutter SDKs provide software development kits for the Dart programming language. In versions of the Dart SDK prior to 3.11.0 and the Flutter SDK prior to version 3.41.0, when the pub client ( and ) extracts a package in the pub cache, a malicious package archive can have files extracted outside the destination directory in the . A fix has been landed in commit 26c6985c742593d081f8b58
Affected
- cpe dart/dart software development kitversion unspecified
- cpe flutter/flutterversion unspecified
Sources
- CVE.orgVulnerability recordCVE-2026-27704
Official CVE identifier
cve.org - NIST NVDVulnerability recordCVE-2026-27704
The Dart and Flutter SDKs provide software development kits for the Dart programming language. In versions of the Dart SDK prior to 3.11.0 and the Flutter SDK prior to version 3.41.0, when the pub client ( and ) extracts a package in the pub cache, a malici
nvd.nist.gov