Node.js 20 is end of life: running it safely while you migrate
Node.js 20 reached end of life on 30 April 2026. Since then the Node.js project has published no security fixes for it, and cloud and CI platforms are removing it. If you still run it, reduce your exposure now and plan the move to Node.js 24 or 26. Node.js 22 is still supported, but only until 30 April 2027.
Where each Node.js version stands
| Version | Status | End of life |
|---|---|---|
| Node.js 18 | End of life | 30 April 2025 |
| Node.js 20 | End of life | 30 April 2026 |
| Node.js 22 | Maintenance LTS | 30 April 2027 |
| Node.js 24 | Maintenance LTS since 20 October 2026 | 30 April 2028 |
| Node.js 26 | Active LTS since 28 October 2026 | 30 April 2029 |
| Node.js 27 | Alpha now, release planned for April 2027 | April 2030 (planned) |
The release schedule changes from Node.js 27. There will be one major release a year, every April, and each one becomes LTS in October, with 36 months of support in total. Odd-numbered Current releases end. Node.js 26 is the last release line under the old model.
What end of life means in practice
The Node.js project publishes no more releases for Node.js 20, including security fixes. When a vulnerability is fixed in Node.js 22, 24 or 26, assume Node.js 20 has it too and stays exposed.
Hosting and CI platforms follow the same date:
| Platform | What changed | Date |
|---|---|---|
| AWS Lambda (nodejs20.x) | Security patches stopped | 30 April 2026 |
| AWS Lambda (nodejs20.x) | New functions blocked | 29 July 2027 |
| AWS Lambda (nodejs20.x) | Function updates blocked | 31 August 2027 |
| GitHub Actions | Runners use Node.js 24 by default | 16 June 2026 |
| GitHub Actions | Node.js 20 removed from runners | 23 September 2026 |
AWS has moved its Lambda blocking dates before, so check its runtime table for the current dates. Expect vulnerability scanners and customer security reviews to flag Node.js 20 as an unsupported runtime.
Running Node.js 20 safely until you move
- Get on the last release. The final Node.js 20 release is 20.20.2, published on 24 March 2026. Older 20.x versions also miss fixes released before end of life.
- Reduce exposure. Keep Node.js 20 services off the public internet where you can, or put them behind a reverse proxy or web application firewall.
- Keep dependencies patched. Your npm packages still get fixes even though the runtime does not. Run npm audit in every build.
- Limit what an attacker can reach. Run containers as a non-root user, with minimal base images and only the network access each service needs.
- Read each Node.js security release. Check whether the fixed issue affects how you use Node.js 20.
- Set an end date. Put the migration on the roadmap with a date. Paid extended security support for Node.js 20 exists, for example from HeroDevs, if you need more time.
Which version to move to
| Target | Supported until | Choose it when |
|---|---|---|
| Node.js 24 | 30 April 2028 | Most existing applications. It is the default on GitHub Actions and available on AWS Lambda |
| Node.js 26 | 30 April 2029 | New services, or when you want the longest support. Check your hosting platform supports it first |
| Node.js 22 | 30 April 2027 | Only as a short stop if a key dependency does not run on 24 yet. You will upgrade again within months |
If you use AWS Lambda: from the Node.js 24 runtime, Lambda no longer supports callback-based handlers. Functions must use async handlers.
Upgrade order
- Find every place the version is set. Check .nvmrc files, the engines field in package.json, Dockerfile base images, Lambda runtime settings and CI configuration.
- Add the new version to CI first. Run your tests on both versions until the new one passes.
- Update dependencies. Native add-ons must be rebuilt for each Node.js major version, so update packages that ship native code.
- Fix the breaking changes listed in the next section.
- Change the runtime in Dockerfiles, Lambda settings and deployment scripts.
- Release one service at a time, starting with internal ones, with a rollback ready.
Changes that often break between Node.js 20 and 24 or 26
| Change | Since | What to do |
|---|---|---|
| Import assertions removed. Use import attributes instead | Node.js 22 | Search your code for assert { type: and change it to with { type: |
| crypto.createCipher and crypto.createDecipher removed | Node.js 22 | Use createCipheriv and createDecipheriv with an explicit initialisation vector |
| Default stream buffer size raised from 16 KiB to 64 KiB | Node.js 22 | Check memory use in services that open many streams |
| npm 11 bundled | Node.js 24 | Check CI scripts and lockfiles after the npm upgrade |
| AsyncLocalStorage uses AsyncContextFrame by default | Node.js 24 | Test request tracing and logging context, including APM agents |
| Permission model flag renamed to --permission | Node.js 24 | Update start scripts that used --experimental-permission |
| Legacy _stream_* modules and http writeHeader() removed | Node.js 26 | Use the stream module and writeHead() instead |
This is not the full list. Read the release notes for Node.js 22, Node.js 24 and Node.js 26 for the modules you use.
How AMT can help
- To add Node.js engineers to your team for the upgrade, see hire Node.js developers.
- For CI pipelines, containers and Lambda runtime changes, see DevOps and cloud engineering.
- For regression tests before you switch versions, see QA automation testing.
- To keep services patched after the upgrade, see application maintenance and support.
- For other support deadlines, see our technology support calendar.
FAQ
Is Node.js 20 still safe to use?
Should I move from Node.js 20 to 22, 24 or 26?
When does AWS Lambda stop running Node.js 20?
What changed in the Node.js release schedule?
Sources
- Node.js: Evolving the Node.js release schedule
- endoflife.date: Node.js release and end of life dates
- Node.js 22.0.0 release notes
- Node.js 24.0.0 release notes
- Node.js 26.0.0 release notes
- AWS Lambda: runtime deprecation policy and dates
- AWS Compute Blog: Node.js 24 runtime now available in AWS Lambda
- GitHub: Deprecation of Node 20 on GitHub Actions runners
- GitHub: Node 20 is no longer available in GitHub Actions
- HeroDevs: Never-Ending Support for Node.js 20
Tell us which Node.js versions you run and where they are deployed.