{
  "schemaVersion": "ebb.rule.v1",
  "id": "container.node.eol-21-and-older",
  "ecosystem": "container",
  "purl": "pkg:docker/library/node",
  "affectedVersions": "vers:semver/<22.0.0",
  "event": "end-of-life",
  "severity": "high",
  "title": "Node.js image release lines 21 and older are end-of-life",
  "summary": "These Node.js release lines no longer receive security or bug fixes, so images tagged with them are built on an unsupported runtime.",
  "replacement": "A node image on a supported release line, such as node:22",
  "deadline": "2026-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-16"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-16",
    "reviewedAt": "2026-10-16",
    "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."
      }
    ]
  }
}
