sidebar hamburger menu

Next.js

Endless Lifecycle Support (ELS) for Next.js from TuxCare provides security fixes for Next.js versions that have reached their end of life. This allows you to continue running Next.js applications without vulnerability concerns, even after official support has ended.

Supported Next.js Versions

  • Next.js 12.3.7, 13.5.11, 14.2.35, 16.0.6

Connection to ELS for Next.js Library

This guide outlines the steps needed to integrate the TuxCare ELS for the Next.js library.

Step 1: Get Token

You need a token in order to use TuxCare ELS Next.js library. Anonymous access is disabled. To receive the token, please contact sales@tuxcare.com.

Step 2: Set Up ELS for Next.js

TuxCare provides ELS for Next.js as an NPM package, hosted on a secure internal registry. Follow the steps below to add it to your project and get started.

  1. Navigate to the root directory of your Next.js project.

  2. Create a .npmrc file or update it if it already exists.

    Example:

    my-nextjs-project/
    ├── node_modules/
    ├── package.json
    ├── .npmrc         ⚠️ ← Create it here
    └── package-lock.json
    
  3. Use an editor of your choice (e.g., VS Code) to add the following registry address line:

    registry=https://registry.npmjs.org/
    @els-js:registry=https://nexus.repo.tuxcare.com/repository/els_js/
    //nexus.repo.tuxcare.com/repository/els_js/:_auth=${TOKEN}
    

    Replace ${TOKEN} with the token you received from sales@tuxcare.com.

  4. Update your package.json file to replace your Next.js dependencies with the TuxCare packages. Choose your Next.js version below and add the dependencies and overrides entries shown.

    Choose Next.js version:
    "dependencies": {
      "next": "npm:@els-js/next@>=12.3.7-tuxcare.1"
    },
    "overrides": {
      "next@12.3.7": "npm:@els-js/next@>=12.3.7-tuxcare.1"
    }
    
  5. You need to remove the node_modules directory and the package-lock.json file, and also clear the npm cache before installing the patched packages. Use the following commands:

    rm -rf node_modules package-lock.json && npm cache clean --force
    
  6. Run the following command to install the ELS version of the Next.js library (token for the TuxCare repository will be automatically picked up from your .npmrc file):

    npm install
    

Step 3: Verify Installation

  1. To confirm the TuxCare Next.js library is set up correctly, use npm to list the project's dependencies:

    npm list
    
  2. After reviewing the dependencies, run your application to ensure everything works correctly.

The npm tool should be able to identify and resolve dependencies from the TuxCare ELS for Next.js repository.

Vulnerability Exploitability eXchange (VEX)

VEX is a machine-readable format that tells you if a known vulnerability is actually exploitable in your product. It reduces false positives, helps prioritize real risks.

TuxCare provides VEX for Next.js ELS versions: security.tuxcare.com/vex/cyclonedx/els_lang_javascript/next/.

Software Bill of Materials (SBOM)

For each published ELS package and version, TuxCare generates SBOM files. Those artifacts are published to TuxCare Nexus.

You can browse SBOM files for Next.js here:

https://nexus.repo.tuxcare.com/#browse/browse:els-js-sbom:next

Use the credentials you received for TuxCare ELS (Step 1: Get Token) to access Nexus.

How to Upgrade to a Newer Version of TuxCare Packages

If you have already installed a package with a tuxcare.1 suffix and want to upgrade to a newer release (for example, tuxcare.3), remove node_modules, clear the npm cache to avoid conflicts, and then run the installation command:

rm -rf node_modules package-lock.json && npm cache clean --force
npm install

Resolved CVEs

Fixes for the following vulnerabilities are available in ELS for Next.js from TuxCare versions:

Choose Next.js version:
CVE IDCVE TypeSeverityAffected LibrariesVulnerable Versions
CVE-2025-57822DirectHighnext< 14.2.32, >= 15.0.0, < 15.4.7
CVE-2024-51479DirectHighnext>= 9.5.5, < 14.2.15
CVE-2024-47831DirectHighnext>= 10.0.0, < 14.2.7
CVE-2024-34351DirectHighnext>= 13.4.0, < 14.1.1
CVE-2023-46298DirectHighnext< 13.4.20
CVE-2025-57752DirectMediumnext< 14.2.31, >= 15.0.0 < 15.4.5
CVE-2025-55173DirectMediumnext< 14.2.31, >= 15.0.0 < 15.4.5
CVE-2025-48068DirectLownext>= 13.0.0 < 14.2.30, >= 15.0.0 < 15.2.2
CVE-2025-32421DirectLownext< 14.2.24, >= 15.0.0 < 15.1.6
CVE-2026-29057DirectMediumnext>= 9.5.0 < 15.5.13, >= 16.0.0 < 16.1.7
CVE-2026-27980DirectHighnext>= 10.0.0 < 16.1.7

If you are interested in the TuxCare Endless Lifecycle Support, contact sales@tuxcare.com.