{
  "schemaVersion": "ebb.rule.v1",
  "id": "dart.sdk.end-of-support-3.6",
  "ecosystem": "dart",
  "purl": "pkg:generic/dart",
  "affectedVersions": "vers:semver/>=3.6.0|<3.7.0",
  "event": "end-of-support",
  "severity": "high",
  "title": "Dart 3.6 no longer receives security updates",
  "summary": "The Dart security policy commits security updates only for the most recent stable SDK release. Dart 3.6 stopped being that release when Dart 3.7 shipped on 2025-02-12.",
  "replacement": "Dart 3.13 or later",
  "deadline": "2025-02-12",
  "sources": [
    {
      "title": "Dart security policy",
      "url": "https://dart.dev/security",
      "accessedAt": "2026-11-07"
    },
    {
      "title": "Dart changelog",
      "url": "https://dart.dev/changelog",
      "accessedAt": "2026-11-07"
    }
  ],
  "provenance": {
    "observedAt": "2026-11-07",
    "reviewedAt": "2026-11-07",
    "reviewer": "arminazimi"
  },
  "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": [
      {
        "id": "raise-sdk-pin",
        "title": "Raise the SDK pin",
        "instructions": "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.",
        "targets": "declaration"
      },
      {
        "id": "raise-sdk-constraint",
        "title": "Raise the SDK constraint",
        "instructions": "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.",
        "targets": "all"
      },
      {
        "id": "align-ci-toolchain",
        "title": "Align CI and documentation",
        "instructions": "Update CI workflows, Docker images, and setup documentation that install the Dart or Flutter SDK so they match the new pin.",
        "targets": "all"
      }
    ],
    "verification": [
      {
        "command": "dart --version",
        "purpose": "Confirm the active Dart SDK is the intended release."
      },
      {
        "command": "dart pub get",
        "purpose": "Re-resolve dependencies against the new SDK constraint."
      },
      {
        "command": "dart analyze && flutter test",
        "purpose": "Analyze and test a Flutter app on the new SDK."
      },
      {
        "command": "dart analyze && dart test",
        "purpose": "Analyze and test a Dart package on the new SDK."
      }
    ]
  }
}
