Skip to main content

Node.js release notes 2022

Release date: December 21, 2022

Language versions currently supported: 12, 14,16, and 18 LTS

Bug fixes:

  • Fix issues with system-diagnostics reporting under Windows env. (NODE-2780)

  • Config utility reads the wrong remote value for syslog settings. (NODE-2781)

Release date: December 19, 2022

Language versions currently supported: 12, 14,16, and 18 LTS

New and improved:

  • CVE-2022-24999 - qs vulnerable to Prototype Pollution.

  • Added support for the Microsoft SQL Server database.

Release date: December 9, 2022

Language versions currently supported: 12, 14,16, and 18 LTS

New and improved:

  • New Contrast Service version - v2.28.23 is now bundled with the v4 agent.

Bug fixes:

  • Defensive code in system diagnostics when finding package.json. (SUP-4357)

  • Added defensive code around checking the express router handler's length. (SUP-4314)

  • System info gets output when running config-diagnostics - this was incorrect behavior.

CVE patch:

  • CVE-2022-24999 (devDependency). version 4.x agent

Release date: December 2, 2022

Language versions currently supported: 12, 14,16, and 18 LTS

New and improved:

  • Provide npx command to read system info and output results. (NODE-2629)

Release date: November 25, 2022

Language versions currently supported: 12, 14,16, and 18 LTS

New and improved:

  • Made _contrast_toString a non-enumerable property of Function.prototype to resolve compatibility issues with @sap/cds. (NODE-2752)

Release date: November 21, 2022

Language versions currently supported: 12, 14,16, and 18 LTS

New and improved:

  • Removed Fastify2 from NodeTestBenches.

Bug fixes:

  • Fixed contrast-diagnostics script that did not support running when not adjacent to the agent installation location. (NODE-2748)

Release date: November 9, 2022

Language versions currently supported: 12, 14,16, and 18 LTS

New and improved:

  • New troubleshooting functionality to write to a file the effective configuration seen by the agent. (NODE-2632)

Release date: October 27, 2022

Language versions currently supported: 12, 14,16, and 18 LTS

Bug fixes:

  • Memory-leak surfaced for apps running with the agent for over 12 hours. (NODE-2715)

CVE remediation:

  • CVE-2022-3517 upgrade dependencies with minimatch so use v3.0.5 or greater. (NODE-2717)

Release date: October 19, 2022

Language versions currently supported: 12, 14,16, and 18 LTS

Bug fixes:

  • Memory leak introduced in 4.25.0. (NODE-2698)

Release date: October 13, 2022

Language versions currently supported: 12, 14 ,16, and 18 LTS

Bug fixes:

  • "TypeError: undefined is not a function" when spawning a child process with Assess. (NODE-2694)

Release date: October 11, 2022

Language versions currently supported: 12, 14 ,16, and 18 LTS

Bug fixes:

  • Memory leak being caused by Assess CallContext stacktraces. (NODE-2681)

  • npm not found and library not reported when the Node.js runtime is installed in the Program Files directory on Windows OS. (NODE-2691)

Release date: October 7, 2022

Language versions currently supported: 12, 14 ,16, and 18 LTS

Bug fixes:

  • NPM commands used in the agent for library reporting/listing will now work on Windows machines. (NODE-2676)

Release date: September 30, 2022

Language versions currently supported: 12, 14 ,16, and 18 LTS

Bug fixes:

  • Fixed an issue where the agent was not starting the Contrast Service when running on Windows OS. (NODE-2677)

Release date: September 27, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • Updated v4 and v5 agents to be compatible with Node 18.

  • The originalUrl property is now tagged in Express.

Bug fixes:

  • Corrected issue where req.path was not tracked and not considered untrusted data. (NODE-2637)

Release date: September 7, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • CVE-no-CVE-ID - Bump moment-timezone from 0.5.34 to 0.5.37.

Bug fixes:

  • Node agent only instruments MongoDB API methods that are susceptible to expansion or injections. (NODE-2040)

Release date: August 31, 2022

Language versions currently supported: 12, 14 and 16 LTS

Bug fix:

  • For agent v16.17 and above, we now explicitly signal a short circuit in our load hook for ESM support (NODE-2620).

Release date: August 26, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • Added instrumentation for the DynamoDB.scan() command and the FilterExpression key AWS v2.

  • Added support for MongoDB NoSQL Injection highlighting in Contrast UI when multiple arguments are present.

Release date: August 17, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • Improved express instrumentation by having the body-parser library and all its parsing methods directly patched/instrumented.

  • Added support for the mongodb v4.x driver for the agent in Protect mode.

Bug fixes:

  • The JSON.stringify() propagator handles when the argument (or subset of argument) is a deserialization membrane. (NODE-2598)

  • Autocomplete missing rule data is serialized properly into protobuf message. (NODE-2589)

Release date: August 8, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • CVE-2022-2564 - Bump Mongoose version to 6.4.6.

Bug fix:

  • The JSON.stringify() propagator handles when the argument (or subset of argument) is a deserialization membrane. (NODE-2598)

Release date: August 1, 2022

Language versions currently supported: 12, 14 and 16 LTS

Bug fix:

  • Aws-sdk version 2 for DynamoDB does not respect abstract attribute types. (NODE-2532)

Release date: July 25, 2022

Language versions currently supported: 12, 14 and 16 LTS

Bug fixes:

  • When processing large strings in docker and using node crypto module to encrypt data, the calls distringuish.getProperties were causing segmentation fault issues. (NODE-2564)

Release date: July 18, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • Added support for isEmail and isDate validators in ValidatorJS.

Bug fixes:

  • Joi validation not recognized if the schema specified in "options" for a hapi route. (NODE-2544)

Release date: July 12, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • Remediated CVE-2022-31129 for inefficient regular expression complexity in moment.

  • Add hardening to prevent app crash if NPM is not installed.

Release date: July 4, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • When a MongoDB update method has multiple attack vectors, the Node.js Agent accurately reports NoSQL Injections that were previously false negatives.

Release date: June 28, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • Remediated CVE-2020-7596 by removing the codecov dependency from node-agent (DEV Dependency).

Release date: June 25, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • Added improved logging when an unsupported version of npm is installed in the app being instrumented.

Bug fixes:

  • Decrease highlighting to just tainted string when reported sink argument is a query object. (SUP-3889)

Release date: June 13, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • Added improved logging when an unsupported version of npm is installed in the app being instrumented.

Bug fixes:

  • When Protect mode is enabled, multipart/form-data throws exception when headers are removed. (SUP-3817)

Release date: June 3, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • Remediated CVE-2021-43138 by updating ejs to a safe version in node-agent, this was a DEV Dependency and was not a true vulnerability. (NODE - 2352)

Release date: June 1, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • Removed winston-syslog from the agent's bundled dependencies, this was being flagged as having a CVE.

Bug fixes:

  • Fixed false-negative of Server-Side Request Forgery (SSRF) for request npm package. (SUP-3829)

Release date: May 27, 2022

Language versions currently supported: 12, 14 and 16 LTS

Bug fixes:

  • Incorrect highlighting displayed for Node.js vulnerabilities under Overview in the Contrast web interface. (SUP-3717, 2927)

Release date: May 19, 2022

Language versions currently supported: 12, 14 and 16 LTS

Bug fixes:

  • When running an application with pm2 on cluster mode and the CONTRAST_CONFIG_PATH provided as an environment variable, the agent reads the CONTRAST_CONFIG_PATH value from contrast_security.yaml instead of the environment variable.

Release date: May 17, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • Implemented support for the ref() function when Joi validation is unknown because of untracked target

  • The hooks for mongodb-core are “replicated” to hook mongodb from version 3.3.0 and later

Release date: May 12, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • Added support for PM2 running in both fork and cluster modes.

  • New config option assess.enable_lazy_tracking for Contrast Node.js 4.X. The default is true and must be set to false to use Fastify http/2.

Release date: April 29, 2022

Language versions currently supported: 12, 14 and 16 LTS

Bug fixes:

  • Rewriter not wrapping file contents in "module wrap" IIFE. (SUP-3732)

  • The lib/util/trace-util getRequest always returns undefined if sampling is disabled. (NODE-2351)

Release date: April 21, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • Custom fastify-static allowedPath path-traversal validator.

  • Remediated CVE-2021-43138 (Prototype Pollution in async Winston bump).

Bug fixes:

  • __import methods can cause an error when the imported module is not yet resolved. (NODE-2341)

  • ESM loader hooks still operate when agent is disabled. (NODE-2340)

Release date: April 14, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • Remediated CVE-2021-43138 (update async dev dependency to a safe version in node-agent).

Release date: April 11, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • Remediated CVE-2022-24785 (update moment dependency to a safe version in node-agent, remediating path traversal vulnerability).

Release date: April 8, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • Added support for DyanmoDB PartiQL (Assess only).

Bug fixes:

  • Fixed deadlinks in NPM agent readme. (Node-2297)

Release date: March 31, 2022

Language versions currently supported: 12, 14 and 16 LTS

Release date: March 29, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • Contrast Service updated to 2.28.19. This resolves CVE-2021-38561.

  • Remediated CVE-2021-44906 (for minimalist npm library).

  • Added support for validator.matches() as a custom validator.

  • Upgraded to  agent-lib 2.2.4.

Release date: March 23, 2022

Language versions currently supported: 12, 14 and 16 LTS

Important

As part of a recent bug fix a setting name has changed. If you are using agent.trust_custom_validator, please update to assess.trust_custom_validator.

New and improved:

  • Added support for MySQL2 library 2.0.0 and later.

Bug fixes:

  • False negative occurs when SQL query template contains untrusted data. (SUP-3568)

Release date: March 29, 2022

Language versions currently supported: 10, 12 and 14 LTS

Important

The Contrast Node.js agent version 3.X will EOL in June 2022. You can upgrade to the latest version 4.x of the Node.js agent available from npm.

New and improved:

  • Remediated CVE-2021-44906 (for minimalist npm library).

Release date: March 25, 2022

Language versions currently supported: 10, 12 and 14 LTS

Important

The Contrast Node.js agent version 3.X will EOL in June 2022.

New and improved:

  • Contrast Service updated to 2.28.17.

  • Remediated CVE-2021-44906 (for minimalist npm library).

Release date: March 17, 2022

Language versions currently supported: 12, 14 and 16 LTS

Bug fixes:

  • Path traversal false negative. (SUP-3558)

  • Agent tries to rewrite ESM files twice. (NODE-2217)

Release date: March 14, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • Remediated CVE-2022-0536 (follow-redirects to a safe version in node-agent)

  • Remediated CVE-2022-0686 (url-parse to a safe version in node-agent)

  • Added warning message to CLI-rewriter logging (or stdout)

  • Added support for hardcoded-key and hardcoded-password vulnerabilities when using CLI-rewriter feature.

  • Support for ESM syntax (import statements) for Node.js 14 and 16 LTS

  • New Protect native input analysis processing with:

    • YAML: agent.node.native_input_analysis: true

    • Environment variable: CONTRAST__AGENT__NODE__NATIVE_INPUT_ANALYSIS=TRUE

Release date: March 14, 2022

Language versions currently supported: 12, 14 and 16 LTS

Bug fixes:

  • Agent is ocassionally throwing error: TypeError: Cannot read property 'getAllParents' of null. (SUP-3611)

Release date: March 10, 2022

Language versions currently supported: 12, 14 and 16 LTS

Bug fixes:

  • Rewrite cache path is built incorrectly when mode isn't explicitly set in config. (NODE-2180)

  • Proxy authentication information showing in logs. (SPEED-1056)

Release date: February 25, 2022

Language versions currently supported: 12, 14 and 16 LTS

Release date: February 22, 2022

Language versions currently supported: 12, 14 and 16 LTS

Release date: February 17, 2022

Language versions currently supported: 12, 14 and 16 LTS

Important

You can no longer download the Node.js agent from Contrast. You should use these instructions to download and install the agent from npm.

Bug fixes:

  • ReThinkDB results in SQLi false negative due to failed instrumentation during propagation. (NODE-2150)

Release date: February 15, 2022

Language versions currently supported: 12, 14 and 16 LTS

Bug fixes:

  • False negative causing Server Side Request Forgery. (NODE-2130)

Release date: February 15, 2022

Language versions currently supported: 12, 14 and 16 LTS

Bug fixes:

  • When parsing the body on the Sails framework, the agent occasionally hangs indefinitely on post requests. (NODE-2125)

Release date: February 7, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • Upgraded Contrast service 2.28.12 is bundled with this agent version.

  • Added support for custom Assess data validation using Mongoose or Joi.

  • Added support for MongoDB key object expansion Protect rule.

Bug fixes:

  • During CLI transpilation, the Node agent no longer logs data if there is no network connectivity or connection to Contrast. (NODE-2083)

Release date: February 1, 2022

Language versions currently supported: 12, 14 and 16 LTS

Bug fixes:

  • When working with large JSON objects, users experience significant Assess performance regressions introduced in Node.js agent 4.9.1. (NODE-2086)

Release date: January 31, 2022

Language versions currently supported: 12, 14 and 16 LTS

New and improved:

  • Contrast Service version 2.28.9 is now bundled with the Node.js agent.

Bug fixes:

  • When the local YAML configuration and environment variables are set, the Contrast service does not prioritize configuration values as indicated in the order of precedence. (NODE-2084)

Release date: January 28, 2022

Language versions currently supported: 12, 14 and 16 LTS

Bug fixes

  • When rewrite caching is enabled, the stack trace no longer repeats and writes the correct filename. (NODE-2065)

Release date: January 19, 2022

Language versions currently supported: 12, 14 and 16 LTS

New features and improvements:

  • Contrast Node.js agent version 4.9.0 was non-installable due to a build dependency that requires package-lock.json file. Version 4.9.1 is patched not to require that dependency.

Note

This version has been deprecated, please use 4.9.1 or later.

Release date: January 19, 2022

Language versions currently supported: 12, 14 and 16 LTS

Release date: January 6, 2022

Language versions currently supported: 12, 14 and 16 LTS

Release date: June 28, 2022

Language versions currently supported: 10, 12 and 14 LTS

Important

This is the last release of 3.x.x of the Node.js agent - the version 3 branch has reached end-of-life status.

New and improved:

  • Remediated CVE-2020-7596 by removing codecov dependency from the node-agent (DEV Dependency).

Release date: May 18, 2022

Language versions currently supported: 10, 12 and 14 LTS

Important

The Contrast Node.js agent version 3.X will EOL in June 2022.

Release date: April 21, 2022

Language versions currently supported: 10, 12 and 14 LTS

Important

The Contrast Node.js agent version 3.X will EOL in June 2022. You can upgrade to the latest version 4.x of the Node.js agent available from npm.

New and improved:

  • Remediated CVE-2021-43138 (Prototype Pollution in async Winston bump).

Release date: April 14, 2022

Language versions currently supported: 10, 12 and 14 LTS

Important

The Contrast Node.js agent version 3.X will EOL in June 2022. You can upgrade to the latest version 4.x of the Node.js agent available from npm.

New and improved:

  • Remediated CVE-2021-43138 (update async dev dependency to a safe version in node-agent).

Release date: April 12, 2022

Language versions currently supported: 10, 12 and 14 LTS

Important

The Contrast Node.js agent version 3.X will EOL in June 2022. You can upgrade to the latest version 4.x of the Node.js agent available from npm.

New and improved:

  • Remediated CVE-2022-24785 (update moment dependency to a safe version in node-agent, remediating path traversal vulnerability).

Release date: March 29, 2022

Language versions currently supported: 10, 12 and 14 LTS

Important

The Contrast Node.js agent version 3.X will EOL in June 2022. You can upgrade to the latest version 4.x of the Node.js agent available from npm.

New and improved:

  • Remediated CVE-2021-44906 (for minimalist npm library).

Release date: March 25, 2022

Language versions currently supported: 10, 12 and 14 LTS

Important

The Contrast Node.js agent version 3.X will EOL in June 2022.

New and improved:

  • Contrast Service updated to 2.28.17.

  • Remediated CVE-2021-44906 (for minimalist npm library).

Release date: February 25, 2022

Language versions currently supported: 10, 12 and 14 LTS

Important

The Contrast Node.js agent version 3.X will EOL in June 2022.

Release date: February 7, 2022

Language versions currently supported: 10, 12 and 14 LTS

Important

The Contrast Node.js agent version 3.X will EOL in June 2022.

New and improved:

  • Upgraded Contrast service 2.28.12 is bundled with this agent version.

Release date: January 31, 2022

Language versions currently supported: 10, 12 and 14 LTS

Important

The Contrast Node.js agent version 3.X will EOL in June 2022.

New features and improvements:

  • Contrast service version 2.28.9 is now packaged with the Node.js agent.

Bug fixes:

  • When the local YAML configuration and environment variables are set, the Node.js agent does not prioritize configuration values as indicated in the order of precedence. (NODE-2084)

Release date: January 19, 2021

Language versions currently supported: 10, 12 and 14 LTS

Important

The Contrast Node.js agent version 3.X will EOL in June 2022.

New features and improvements:

  • Contrast service version 2.28.4 packaged with the Node.js agent