AEM Frontend Pipeline Node.js version selection and validation

✨ This content is AI generated and could be inaccurate. Generative AI Terms

This article explains the process for selecting and validating Node.js versions in Adobe Experience Manager (AEM) Frontend Pipelines, including how to determine which patch version is used during builds.

Description description

Environment

Adobe Experience Manager (AEM) Cloud Service Frontend Pipeline (all versions)

Symptoms

  • Node.js released security updates addressing vulnerabilities in versions 26.x, 24.x, and 22.x, including issues related to DNS, TLS, and Brotli decompression.
  • Attempting to use a specific patched Node.js version (e.g., 22.23.4) in AEM Frontend Pipelines results in build failure.
  • Specifying only the major version (e.g., NODE_VERSION=22) allows the build to succeed, but the exact patch version used is unclear.
  • There is a requirement to ensure the pipeline uses the patched Node.js version for compliance.

Cause

The AEM Frontend Pipeline only supports specifying the major Node.js version. The exact patch version is determined by the Cloud Manager build image, which is updated on a scheduled basis to include the latest patches. Attempting to specify a full patch version is unsupported and will result in build failure.

Resolution resolution

Follow the steps below to resolve the issue.

  1. Specify only the major Node.js version (e.g., NODE_VERSION=22) in your pipeline configuration.

  2. To confirm which Node.js version is being used during the build:

    1. Add node -v to your project’s build script (for example, in the build script of your package.json).

      code language-json
      "scripts": { "build": "node -v && " }
      
    2. Run the pipeline and review the build logs for the Node.js version output.

  3. The Node.js versions in the Cloud Manager build image are updated with each Cloud Manager release. The build image will include the latest available patch for each supported major version as of the image build date.

  4. If a security patch is released after the current image build, the patched version will be included in the next scheduled Cloud Manager release. Refer to the Cloud Manager Release Notes for the release schedule.

  5. There is currently no supported method to explicitly enforce or select a specific Node.js patch version in AEM Frontend Pipelines beyond specifying the major version. The pipeline will use the latest patch available for the specified major version in the current Cloud Manager build image.

recommendation-more-help
experience-cloud-kcs-help-kbarticles