{
  "schemaVersion": "ebb.rule.v1",
  "id": "container.node.eol-22-and-older",
  "ecosystem": "container",
  "purl": "pkg:docker/library/node",
  "affectedVersions": "vers:semver/>=22.0.0|<23.0.0",
  "event": "scheduled-end-of-life",
  "severity": "low",
  "title": "Node.js image release line 22 reaches end-of-life on 2027-04-30",
  "summary": "Node.js 22 is scheduled to stop receiving security and bug fixes on 2027-04-30, so images tagged with it will then be built on an unsupported runtime.",
  "replacement": "A node image on a later supported release line, such as node:24",
  "deadline": "2027-04-30",
  "sources": [
    {
      "title": "Node.js end-of-life releases",
      "url": "https://nodejs.org/en/about/eol",
      "accessedAt": "2026-10-16"
    },
    {
      "title": "Node.js Release Working Group schedule",
      "url": "https://github.com/nodejs/Release/blob/main/schedule.json",
      "accessedAt": "2026-10-24"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-24",
    "reviewedAt": "2026-10-24",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Keep the Dockerfile base image, Compose image, CI service containers, and the engines field in package.json on one supported Node.js release line.",
      "Confirm native modules and production dependencies support the target Node.js major."
    ],
    "steps": [
      {
        "id": "update-image-declaration",
        "title": "Update the base image",
        "instructions": "Change the reported FROM line or Compose image to a tag on a supported release line, and pin it to a digest if your policy requires.",
        "targets": "declaration"
      },
      {
        "id": "align-image-surfaces",
        "title": "Align other image references",
        "instructions": "Update other Dockerfiles, Compose files, CI service containers, and deployment manifests that use the same image so they agree.",
        "targets": "all"
      }
    ],
    "verification": [
      {
        "command": "docker build .",
        "purpose": "Build the image on the new base."
      },
      {
        "command": "docker run --rm IMAGE node --version",
        "purpose": "Confirm the container runs the intended Node.js version."
      }
    ]
  }
}
