Modernisation

    Node.js 20 is end of life: running it safely while you migrate

    Aby VargheseConversational AI ExpertPublished Last reviewed

    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

    Node.js release status, checked 23 November 2026
    VersionStatusEnd of life
    Node.js 18End of life30 April 2025
    Node.js 20End of life30 April 2026
    Node.js 22Maintenance LTS30 April 2027
    Node.js 24Maintenance LTS since 20 October 202630 April 2028
    Node.js 26Active LTS since 28 October 202630 April 2029
    Node.js 27Alpha now, release planned for April 2027April 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:

    What platforms changed for Node.js 20
    PlatformWhat changedDate
    AWS Lambda (nodejs20.x)Security patches stopped30 April 2026
    AWS Lambda (nodejs20.x)New functions blocked29 July 2027
    AWS Lambda (nodejs20.x)Function updates blocked31 August 2027
    GitHub ActionsRunners use Node.js 24 by default16 June 2026
    GitHub ActionsNode.js 20 removed from runners23 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

    Choosing a Node.js version after 20
    TargetSupported untilChoose it when
    Node.js 2430 April 2028Most existing applications. It is the default on GitHub Actions and available on AWS Lambda
    Node.js 2630 April 2029New services, or when you want the longest support. Check your hosting platform supports it first
    Node.js 2230 April 2027Only 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

    1. 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.
    2. Add the new version to CI first. Run your tests on both versions until the new one passes.
    3. Update dependencies. Native add-ons must be rebuilt for each Node.js major version, so update packages that ship native code.
    4. Fix the breaking changes listed in the next section.
    5. Change the runtime in Dockerfiles, Lambda settings and deployment scripts.
    6. 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

    Common breaking changes from Node.js 20 to 24 and 26
    ChangeSinceWhat to do
    Import assertions removed. Use import attributes insteadNode.js 22Search your code for assert { type: and change it to with { type:
    crypto.createCipher and crypto.createDecipher removedNode.js 22Use createCipheriv and createDecipheriv with an explicit initialisation vector
    Default stream buffer size raised from 16 KiB to 64 KiBNode.js 22Check memory use in services that open many streams
    npm 11 bundledNode.js 24Check CI scripts and lockfiles after the npm upgrade
    AsyncLocalStorage uses AsyncContextFrame by defaultNode.js 24Test request tracing and logging context, including APM agents
    Permission model flag renamed to --permissionNode.js 24Update start scripts that used --experimental-permission
    Legacy _stream_* modules and http writeHeader() removedNode.js 26Use 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

    FAQ

    Is Node.js 20 still safe to use?

    It still runs, but since 30 April 2026 the Node.js project publishes no security fixes for it. Treat any internet-facing Node.js 20 service as a risk to remove.

    Should I move from Node.js 20 to 22, 24 or 26?

    Node.js 24 for most existing applications and Node.js 26 for new services. Node.js 22 reaches end of life on 30 April 2027, so moving there means another upgrade within months.

    When does AWS Lambda stop running Node.js 20?

    Lambda stopped patching the nodejs20.x runtime on 30 April 2026. Its runtime table, as of November 2026, blocks new nodejs20.x functions from 29 July 2027 and updates from 31 August 2027. Existing functions can still run, but without patches.

    What changed in the Node.js release schedule?

    From Node.js 27 there is one major release a year, in April, and every release becomes LTS in October. Node.js 26 is the last release line under the old odd and even model.

    Sources

    Tell us which Node.js versions you run and where they are deployed.

    Related reading