Skip to main content

Node.jsエージェントのリリース情報 2020年

リリース日: 2020年12月7日

現在サポートしている言語バージョン:10、12、14 LTS

修正された不具合:

  • Certain types of XML uploads result in an XXE false negative. (SUP-2287)

リリース日: 2020年12月18日

現在サポートしている言語バージョン:10、12、14 LTS

New features and improvements:

  • Input exclusions for Assess are supported.You can exclude findings based on input type or name.

  • Optimized performance when sourcemaps is enabled.

  • Flowmaps now have better accuracy in reporting architectural components.

リリース日: 2020 年11月20日

現在サポートしている言語バージョン:10、12、14 LTS

New features and improvements:

  • Node.js 14 is now supported.

  • Improved accuracy of line number reporting for vulnerabilities with source mapping.

修正された不具合:

  • Agent fails to instrument in Node 14 running on Windows. (SUP-2230)

リリース日: 2020年10月28日

現在サポートしている言語バージョン: 10、12 LTS

リリース日: 2020年10月23日

現在サポートしている言語バージョン: 10、12 LTS

New features and improvements:

  • Added support for sequelize sql-string format methods.

修正された不具合:

  • Found false negative with Node.js loopback in Protect mode. (SUP-2009)

リリース日: 2020年9月25日

現在サポートしている言語バージョン: 10、12 LTS

修正された不具合:

  • Need to add support for fs.createWriteStream as a Protect sink. (SUP-2013)

リリース日: 2020 年9月18日

現在サポートしている言語バージョン: 10、12 LTS

New features and improvements:

  • Restify 8 framework support is now available.

修正された不具合:

  • An Insecure Encryption Algorithm finding reports an incorrect code location. (SUP-1852)

  • FastifyFramework did not emit all headers in 'send' event.

リリース日: 2020 年9月10日

現在サポートしている言語バージョン: 10、12 LTS

New features and improvements:

  • The 3.X version of the agent sets the default behavior to communicate and report to Contrast using the Contrast service.

  • The new rewrite_cache property will cache the app code rewritten by Contrast on startup and can improve subsequent startup time.This property is disabled by default but can be enabled.

重要なお知らせ:

  • With the 3.X version of the Node.js agent, the Contrast service is enabled by default but can still be disabled.Because of this, you will need to download the new 3.X agent binary through npm (recommended) or through Contrast..Please contact Support if you have any questions about this change.

修正された不具合:

  • Tracking strings which include the + operator create a performance issue. (SUP-1975)

現在サポートしている言語バージョン: 10、12 LTS

New features and improvements:

  • This release sets default behavior of the Node.js agent to communicate and report to Contrast directly, without using the Contrast Service.This undoes a breaking change that was introduced in the 2.x.x branch back in February of 2020.

  • New performance diagnostic features are now available for Contrast Customer Success to help diagnose performance issues.

  • Added the capability to track untrusted data through the node.js url.domainToASCII and url.domainToUnicode functions.

  • The agent.node.unsafe.deadzones option will now trim whitespace around each option.

重要なお知らせ:

  • This version marks the last new release for the 2.x.x branch.Only patch releases will be provided going forward for the 2.18.x branch.

    Customers will be required to upgrade to version 3.x.x (available September 2020) to gain additional capabilities in the Node.js agent.Version 3.0.0 of the Contrast Node.js agent will have potentially impactful changes which should be assessed by each customer for their specific application.

修正された不具合:

  • The server.path config option is not being passed to Contrast when using the Contrast service for communication. (SUP-1838)

  • Node agent Lodash dependency updated to 4.17.20 to resolve CVE-2020-8203. (SUP-1883)

  • Resolve TypeError: replacer.replace is not a function. (SUP-1888)

現在サポートしている言語バージョン: 10、12 LTS

修正された不具合:

  • Agent breaks expected express-async-errors behavior. (SUP-1801)

現在サポートしている言語バージョン: 10、12 LTS

現在サポートしている言語バージョン: 10、12 LTS

過去1ヶ月間にリリースされたエージェントのバージョン: 2.16.1, 2.16.2, 2.16.3, 2.16.4, 2.16.5, 2.16.6, 2.16.7, 2.16.8, 2.17.0

新機能と改善点:

  • Added multiple architecture changes and fixes that improve Assess performance.

  • Added support for URL Exclusions when using Assess.In Contrast, you can designate URLs that ignore selected rules or all rules.The agent now respects these settings for Assess rules in the Node.js agent.

  • Protect rule modes now default to OFF for best backward and forward compatibility.

  • Improved Fastify support to work better with GraphQL and Apollo Server.

  • Removed support for Protect Cross-site Request Forgery (CSRF).

  • Updated the version of Lodash used by the Node.js agent to 4.17.19 in response to a CVE for Lodash 4.17.15.

重要なお知らせ:

  • Version 3.0.0 of the Node.js agent will be released at the end of August and will introduce these changes:

    • The Node.js agent will be required to run with the Contrast service enabled.Currently the service is shipped with the agent but is optional; this change will enable the service by default.

    • The service will provide multiple functional and performance benefits to the Node.js agent.

    • The legacy auto-update policy for the Node.js agent will be deprecated when running with the service enabled.

      注記

      You will need to upgrade to Version 3.0.0, because the legacy auto-update feature does not upgrade to a major version.You can update your agent to 3.x with npm (recommended), the Contrast API or by using the Contrast web interface.Using npm allows version updates by using the customer’s application’s package.json with semantic versioning.

  • All new features will only be available for 3.0.0 and higher.Version 2.18.0 will also be released at the end of August and will be the final version that doesn't require the Contrast service.This version will continue to be supported for patch releases.

  • There are two optional features that may be useful to some customers.Contact your Customer Success Representative if you would like to know more about these:

    • Re-write caching provides faster subsequent start-up times.

    • Performance may improve when you skip (or deadzone) certain modules.For example, if you have modules passing large strings that are irrelevant to security, like logging, you can choose not to instrument them.

修正された不具合:

  • Node.js agent failed to initialize.Missing gRPC framework was resolved.

  • An exception occurred because of a syntax error for Fastify.This was fixed.

  • Crash when requiring the aws-s3 module was resolved.

現在サポートしている言語バージョン: 10、12 LTS

過去1ヶ月間にリリースされたエージェントのバージョン: 2.15.1 2.15.2, 2.15.3, 2.15.4, 2.15.5, 2.16.0, 2.16.1, 2.16.2, 2.16.3, 2.16.4

新機能と改善点:

  • Multiple architecture and performance improvements.

  • New gRPC communication protocol between the agent service improves performance.

  • Removed name and value cookie sources for reflected XXS per updated guidance for both Assess and Protect.

  • Added a sensor for SQLite for Protect.

  • Added support for Koa version 2.12.

  • Reflected XSS is now not reported if Content-Type is allowlisted as safe.

重要なお知らせ:

  • A major version release for the Node.js agent is planned for late July or August 2020.Node.js agent version 3.0.0 will introduce breaking changes for customers using the 2.x.x version of the agent and service.

修正された不具合:

  • Implemented multiple bug fixes due to the introduction of the gRPC communication protocol between the JavaScript agent and the agent service

  • Implemented fixes to resolve route coverage issues that surface when using graphQL, Apollo Server, and Fastify

  • Resolved a false positive issue when correctly using Sequelize to escape strings.

  • Resolved exception when fastify.route is called with an uppercase verb.

  • Resolved an issue that manifested as reporting duplicate routes when using the Express framework.

現在サポートしている言語バージョン: 10、12 LTS

過去1ヶ月間にリリースされたエージェントのバージョン: 2.15.0

重要なお知らせ:

修正された不具合:

  • The customer application would fail to start when all Assess rules were disabled.This is fixed now.

  • The customer application would fail to start because worker threads would hang and generate multiple processes with the same pid.This is fixed now.

  • The agent would not output the security log to stdout (or stderr).This is fixed now.

  • Duplicated vulnerabilities were being reported for unique routes.This is fixed so that TeamServer displays distinct findings for each request uri.

  • An out-of-memory error caused by a regex match resulted in an infinite loop.This has been fixed.

  • Node.js agent’s migration to npm and incorrectly bundled modules made it seem like the agent was missing two dependencies.This has been resolved.

現在サポートしている言語バージョン:

Agent versions released during the past month: 2.8.1, 2.8.2, 2.8.3, 2.9.0

New features and improvements:

  • Fastify framework support: Fastify 2.x is now a supported framework for the Contrast Node.js agent.

  • NPM availability: The Contrast Node.js agent can now be installed directly from the Contrast Security public NPM repository

  • Pre-load capabilities: The Node.js agent can now be run as a pre-load module using the -r flag.This is also now the recommended method of running the Contrast Node.js agent.

Important notes:

  • Running the node agent as a runner will now generate a deprecation message.This is the deprecated syntax:

    node-contrast<app-main>

    The agent will continue to function when executed as a runner.However, we encourage customers to migrate to the new method of running the Contrast Node.js agent as this is no longer recommended.

Bug fixes:

  • After architecture improvements were made to the agent, some applications were prevented from starting with the agent.This has been resolved and users should no longer receive error messages like these:

    cls.run(() => {
        ^
    TypeError: Cannot read property 'run' of undefined
    
    OR
    
    /usr/src/app/node_modules/node_contrast/lib.asar/AsyncStorage/index.js:188
        if (ns.active) {
    
    TypeError: Cannot read property 'active' of undefined