Dart 2 and older no longer receive security updates
End of support as of 2023-05-10. Replacement: Dart 3.13 or later. Source: Dart security policy.
Check a version:
evergreen check pkg:generic/dart
The Dart security policy commits security updates only for the most recent stable SDK release. Dart 2.x and every older release stopped being that release when Dart 3.0 shipped on 2023-05-10.
Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>
| Status | End of support |
| Severity | high |
| Ecosystem | dart |
| Component | pkg:generic/dart |
| Affected versions | vers:semver/<3.0.0 |
| Date from the source | 2023-05-10 |
| Replacement | Dart 3.13 or later |
| Evidence last seen | 2026-11-07 |
| Reviewed | 2026-11-07 by arminazimi |
| Review due | 2027-02-05 (90 days after the last review) |
| Rule ID | dart.sdk.end-of-support-2-and-older |
Sources
- Dart security policy (accessed 2026-11-07)
- Dart changelog (accessed 2026-11-07)
Migration
Constraints
- Keep environment.sdk in pubspec.yaml, the sdks block in pubspec.lock, the Flutter version pinned in .fvmrc, and the SDK used in CI on one supported release.
- A Flutter project gets its Dart SDK from the Flutter release it pins, so raise the Flutter pin to a release that bundles the Dart version in the replacement instead of installing Dart on its own.
Steps
- Raise the SDK pin. Change the reported Dart SDK pin to the version in the replacement. For a Flutter project, raise the Flutter version in .fvmrc or .fvm/fvm_config.json to a release that bundles that Dart version.
- Raise the SDK constraint. Raise the lower bound of environment.sdk in pubspec.yaml (and environment.flutter for an app) so it admits only supported SDKs, then re-resolve dependencies so pubspec.lock records the new sdks constraints.
- Align CI and documentation. Update CI workflows, Docker images, and setup documentation that install the Dart or Flutter SDK so they match the new pin.
Verification
dart --version: Confirm the active Dart SDK is the intended release.dart pub get: Re-resolve dependencies against the new SDK constraint.dart analyze && flutter test: Analyze and test a Flutter app on the new SDK.dart analyze && dart test: Analyze and test a Dart package on the new SDK.
Detected by
The dart detector. See Detectors and Compatibility.
Related
Other versions of this product
- Dart 3.0 no longer receives security updates
- Dart 3.1 no longer receives security updates
- Dart 3.10 no longer receives security updates
- Dart 3.11 no longer receives security updates
- Dart 3.12 no longer receives security updates
- Dart 3.2 no longer receives security updates
- Dart 3.3 no longer receives security updates
- Dart 3.4 no longer receives security updates
- Dart 3.5 no longer receives security updates
- Dart 3.6 no longer receives security updates
- Dart 3.7 no longer receives security updates
- Dart 3.8 no longer receives security updates
Same ecosystem
Data
This page is generated from registry/dart.json, rule dart.sdk.end-of-support-2-and-older, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.
Last updated