DEV Community

Cover image for Python 3.10 end of life is Oct 31: find every pinned Python and Node version
Versyka
Versyka

Posted on AI-assisted

Python 3.10 end of life is Oct 31: find every pinned Python and Node version

Python 3.10 reaches end of life on October 31, 2026. Node 20 already did, on April 30, 2026.

End of life doesn't break anything. The interpreter keeps running. What stops is security releases: the next CVE in that version never gets a patch, and nothing in your build turns red to tell you.

The hard part isn't upgrading. It's knowing where the version is pinned, because it's rarely in one place.

Where runtime versions hide

File What it looks like
Dockerfile FROM python:3.10-slim, FROM node:20-alpine
.python-version 3.10 or 3.10.14
runtime.txt python-3.10.14 (Heroku-style platforms)
.nvmrc / .node-version 20
serverless.yml runtime: python3.10, runtime: nodejs20.x
pyproject.toml requires-python = ">=3.10,<3.11"
package.json "engines": { "node": "20.x" }
CI config python-version: "3.10", node-version: 20

A quick audit script

Run this from the root of a repository:

#!/usr/bin/env bash
# Find pinned Python 3.10 and Node 20 runtimes
grep -RInE \
  --include=Dockerfile* --include=.python-version --include=runtime.txt \
  --include=.nvmrc --include=.node-version --include=serverless.y*ml \
  --include=pyproject.toml --include=package.json --include=*.yml --include=*.yaml \
  -e 'python:?3\.10' -e 'python-?3\.10' -e 'python3\.10' -e '"3\.10' \
  -e 'node:20' -e 'nodejs20' -e '^20(\.|$)' -e 'node-version: *"?20' \
  . 2>/dev/null | grep -v node_modules
Enter fullscreen mode Exit fullscreen mode

It's noisy on purpose. A false positive costs you two seconds. A missed FROM python:3.10 costs you a year of unpatched base images.

What to move to

Check endoflife.date before you pick. As of today:

  • Python: 3.10 ends Oct 31, 2026. Move to a version with years of support left, not the next one up.
  • Node: 20 ended Apr 30, 2026. Node 22 is supported until Apr 30, 2027, so a move to 22 buys you six months. Plan for the one after it at the same time.

Make it someone's job (or something's)

The audit above works once. The dates keep coming, though: there's a runtime end of life every few months across Python, Node, Ruby, Go and Java.

That's why we made it a daily check in Versyka, for Python and Node.js. It reads .python-version, .nvmrc and .node-version, runtime.txt, your Dockerfiles, and the runtime in serverless.yml or a SAM template.yaml. Then it checks each pinned version against endoflife.date and warns you 180 days before the date, by email, Slack and on the dashboard. It alerts only: changing a base image is a decision you should make, not a bot. (A minimum like requires-python = ">=3.8" isn't a pin, so it doesn't count.)

Whatever you use, get the dates on a calendar before they pass.

Top comments (2)

Collapse
 
amanmohdali profile image
Aman Ali •

The fact that end-of-life doesn’t break anything but quietly stops security patches is easy to overlook until you actually encounter it. There’s no warning, like a red indicator, to alert you. I prefer the grep-based approach for identifying pinned runtimes across Dockerfiles, .python-version files, and CI configurations. This approach is simple enough to run in any repository without requiring additional tools. However, I would suggest adding a check for base images that indirectly pin runtimes, such as FROM myorg/python-base:3.10. These base images can conceal an EOL runtime that is a level removed from the Dockerfile that actually sets it. Given how easily a stale pin can be reinstated after someone reverts a change, turning this into a daily check instead of a one-off audit seems like the most prudent course of action.

Collapse
 
getversyka profile image
Versyka •

You’re right, that’s a gap in the script. FROM myorg/python-base:3.10 at least has the version in the tag, but FROM myorg/python-base:latest or a pinned digest hides it completely. The real Python version then lives in a Dockerfile in another repo that this grep never sees.

Two cheap checks until that’s automated:

docker run --rm myorg/python-base:latest python --version

or add LABEL python.version="3.10" to the base image, so downstream repos can read it with docker inspect instead of guessing.