# CVE-2026-27704: Dart SDK and Flutter SDK have Zip slip in Dart Pub package extraction

- Severity: Medium 6.6 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-02-25T15:17:26.243Z
- Modified: 2026-06-17T10:27:32.903Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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 (`dart pub` and `flutter pub`) extracts a package in the pub cache, a malicious package archive can have files extracted outside the destination directory in the `PUB_CACHE`.  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.

(As written by CVE List.)

## Affected

- dart-lang sdk: < 3.11.0
- dart-lang flutter: < 3.41.0
- dart dart_software_development_kit: before 3.11.0
- flutter flutter: before 3.41.0

## Every score

- GitHub_M: CVSS:4.0 6.6 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/dart-lang/sdk/security/advisories/GHSA-q739-79rh-vmvp> (patch, vendor-advisory)
- <https://github.com/dart-lang/pub/commit/26c6985c742593d081f8b58450f463a584a4203a> (patch)

## Sources

- CVE List: [CVE-2026-27704](https://www.cve.org/CVERecord?id=CVE-2026-27704), CVE Terms of Use, modified 2026-02-25
- NVD: [CVE-2026-27704](https://nvd.nist.gov/vuln/detail/CVE-2026-27704), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-27704 · Whole record: https://cve.day/CVE-2026-27704.json · Rebuilt by cve.day 2026-11-25T22:59:14.848Z
