nodejs:16 security, bug fix, and enhancement update

エラータID: AXSA:2023-5262:01

Release date: 
Wednesday, April 5, 2023 - 06:10
Subject: 
nodejs:16 security, bug fix, and enhancement update
Affected Channels: 
Asianux Server 8 for x86_64
Severity: 
Moderate
Description: 

Node.js is a software development platform for building fast and scalable network applications in the JavaScript programming language.

The following packages have been upgraded to a later upstream version: nodejs (16.19.1).

Security Fix(es):

* glob-parent: Regular Expression Denial of Service (CVE-2021-35065)
* c-ares: buffer overflow in config_sortlist() due to missing string length check (CVE-2022-4904)
* http-cache-semantics: Regular Expression Denial of Service (ReDoS) vulnerability (CVE-2022-25881)
* Node.js: Permissions policies can be bypassed via process.mainModule (CVE-2023-23918)
* Node.js: OpenSSL error handling issues in nodejs crypto library (CVE-2023-23919)
* Node.js: Fetch API did not protect against CRLF injection in host headers (CVE-2023-23936)
* Node.js: insecure loading of ICU data through ICU_DATA environment variable (CVE-2023-23920)
* Node.js: Regular Expression Denial of Service in Headers fetch API (CVE-2023-24807)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

CVE-2021-35065
The glob-parent package before 6.0.1 for Node.js allows ReDoS (regular expression denial of service) attacks against the enclosure regular expression.
CVE-2022-25881
This affects versions of the package http-cache-semantics before 4.1.1. The issue can be exploited via malicious request header values sent to a server, when that server reads the cache policy from the request using this library.
CVE-2022-4904
A flaw was found in the c-ares package. The ares_set_sortlist is missing checks about the validity of the input string, which allows a possible arbitrary length stack overflow. This issue may cause a denial of service or a limited impact on confidentiality and integrity.
CVE-2023-23918
A privilege escalation vulnerability exists in Node.js <19.6.1, <18.14.1, <16.19.1 and <14.21.3 that made it possible to bypass the experimental Permissions (https://nodejs.org/api/permissions.html) feature in Node.js and access non authorized modules by using process.mainModule.require(). This only affects users who had enabled the experimental permissions option with --experimental-policy.
CVE-2023-23919
A cryptographic vulnerability exists in Node.js <19.2.0, <18.14.1, <16.19.1, <14.21.3 that in some cases did does not clear the OpenSSL error stack after operations that may set it. This may lead to false positive errors during subsequent cryptographic operations that happen to be on the same thread. This in turn could be used to cause a denial of service.
CVE-2023-23920
An untrusted search path vulnerability exists in Node.js. <19.6.1, <18.14.1, <16.19.1, and <14.21.3 that could allow an attacker to search and potentially load ICU data when running with elevated privileges.
CVE-2023-23936
Undici is an HTTP/1.1 client for Node.js. Starting with version 2.0.0 and prior to version 5.19.1, the undici library does not protect `host` HTTP header from CRLF injection vulnerabilities. This issue is patched in Undici v5.19.1. As a workaround, sanitize the `headers.host` string before passing to undici.
CVE-2023-24807
Undici is an HTTP/1.1 client for Node.js. Prior to version 5.19.1, the `Headers.set()` and `Headers.append()` methods are vulnerable to Regular Expression Denial of Service (ReDoS) attacks when untrusted values are passed into the functions. This is due to the inefficient regular expression used to normalize the values in the `headerValueNormalize()` utility function. This vulnerability was patched in v5.19.1. No known workarounds are available.

Modularity name: nodejs
Stream name: 16

Solution: 

Update packages.

Additional Info: 

N/A

Download: 

SRPMS
  1. nodejs-nodemon-2.0.20-3.module+el8+1593+425c4d7d.src.rpm
    MD5: 82b2a94511e13dd822d87af8a8dd667f
    SHA-256: 2464cf691eba6f968b511460cc248dcc081bfe306131211071da6aa3ed9d37fc
    Size: 395.30 kB
  2. nodejs-packaging-25-1.module+el8+1593+425c4d7d.src.rpm
    MD5: 74d116e51470f960562b5df76469f191
    SHA-256: 4f3c0b921310a9cdad29b0ea5650f84fba2a7e461a93bf93a5481134a085ca49
    Size: 26.81 kB
  3. nodejs-16.19.1-1.module+el8+1593+425c4d7d.src.rpm
    MD5: cec5e174c1773baf829de2f3ed4e1148
    SHA-256: 8f7352266018ead4c76bf6d5691d7f40f582a1001af4cecdc5649d90b3805e8d
    Size: 70.81 MB

Asianux Server 8 for x86_64
  1. nodejs-16.19.1-1.module+el8+1593+425c4d7d.x86_64.rpm
    MD5: 88ae8974393d9fcf047404e06041d678
    SHA-256: fcfa423ce2d004a2155d08df1c79d2a83f6a44e0350da79a7b79b3d0cf911e6f
    Size: 12.27 MB
  2. nodejs-debugsource-16.19.1-1.module+el8+1593+425c4d7d.x86_64.rpm
    MD5: 70193c04d0f8d291250400d5cae62b5f
    SHA-256: 9f4d87066b392c342e2e594590e124d2718f899e7b32f707bdce226c835b2386
    Size: 13.04 MB
  3. nodejs-devel-16.19.1-1.module+el8+1593+425c4d7d.x86_64.rpm
    MD5: fbbbf2a3809bd13b0b96bfd3b47acaea
    SHA-256: 83fb8c0f25669ccb49c882264ba85679c475d717574087bb8235fa48bf895642
    Size: 191.98 kB
  4. nodejs-docs-16.19.1-1.module+el8+1593+425c4d7d.noarch.rpm
    MD5: 2beba2431a666daf69f1b47a07016501
    SHA-256: 6e91239efc4fae4f9280d4c4e635de4cbbdd8545a0127213dc27633f16c55b5a
    Size: 9.34 MB
  5. nodejs-full-i18n-16.19.1-1.module+el8+1593+425c4d7d.x86_64.rpm
    MD5: 1c681e6c78596ec1cbe0179fc2fd2688
    SHA-256: 9dbe4843be93d164728915863973b943d38066ce0453e1a11b591183667d0fd1
    Size: 8.01 MB
  6. nodejs-nodemon-2.0.20-3.module+el8+1593+425c4d7d.noarch.rpm
    MD5: 78187ed5c19fc0d33c432d41e435179b
    SHA-256: 5ef6f234826659375714a81788fee9cec9d35388d15f12cdc16b826f15147ff9
    Size: 272.63 kB
  7. nodejs-packaging-25-1.module+el8+1593+425c4d7d.noarch.rpm
    MD5: 679e466efb4223a0cd1c298b3bfd92b5
    SHA-256: ea589d101b3f374b00ef5363331c6aca38030fe20a9179c73289209dd54be500
    Size: 23.19 kB
  8. npm-8.19.3-1.16.19.1.1.module+el8+1593+425c4d7d.x86_64.rpm
    MD5: f5c19acefee2bc8798176f28168a5668
    SHA-256: f64ebe0c66e8e8c5384d48d82f1771008273fbe513d6ae1ac8370997ac3110b2
    Size: 1.88 MB