BETA Shoulder is in beta — Findings may sometimes be wrong. Your feedback shapes what we fix next. Share feedback

Dockerfile Uses Outdated Node.js Version

Description

Detects Dockerfiles using outdated or end-of-life Node.js versions.

What Shoulder detects

Dockerfile uses {issue_type} which is end-of-life or outdated. IMPORTANT: Update to node:24-alpine (Active LTS) or node:22-alpine (Maintenance LTS). Do NOT downgrade - always use the latest LTS version.

How to fix

Update to a supported Node.js LTS version.

```dockerfile
FROM node:24-alpine
```

Learn more: https://shoulder.dev/learn/docker/cwe-1104/outdated-node-version

Applies to

Frameworks

docker

References

Scan for this issue

Detect with Shoulder CLI
npx @shoulderdev/cli trust --rule=docker-outdated-node-version .

Related rules