sidebar hamburger menu

Nuxt

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

Supported Nuxt Versions

  • Nuxt 0.10.7, 2.18.1, 3.2.0

Connection to ELS for Nuxt Library

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

Step 1: Get Token

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

Step 2: Set Up ELS for Nuxt

TuxCare provides ELS for Nuxt 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 Nuxt project.

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

    Example:

    my-nuxt-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 add the following overrides for the TuxCare packages:

    Choose Nuxt version:
    "overrides": {
      "lodash.pick@4.4.0": "npm:@els-js/lodash.pick@>=4.4.0-tuxcare.1",
      "lodash.template@4.5.0": "npm:@els-js/lodash.template@>=4.5.0-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 Nuxt 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 Nuxt 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 Nuxt 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 Nuxt ELS versions: security.tuxcare.com/vex/cyclonedx/els_lang_javascript/nuxt/.

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 Nuxt from TuxCare versions:

Choose Nuxt version:
CVE IDCVE TypeSeverityAffected LibrariesVulnerable Versions
CVE-2020-8203TransitiveHighlodash.pick>= 4.0.0 <= 4.4.0
CVE-2021-23337TransitiveHighlodash.template<= 4.5.0

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