public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Andrei Radchenko <aradchen@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/nodejs22] f44: Update to version 22.23.4
Date: Fri, 30 Oct 2026 11:40:36 GMT	[thread overview]
Message-ID: <179336043689.1.16881234887660459964.rpms-nodejs22-a04797936f2c@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/nodejs22
            Branch : f44
            Commit : a04797936f2cc7d10c935816a9c18d1b12f17fb9
            Author : Andrei Radchenko <aradchen@redhat.com>
            Date   : 2026-10-30T12:37:33+01:00
            Stats  : +198/-25 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/nodejs22/c/a04797936f2cc7d10c935816a9c18d1b12f17fb9?branch=f44

            Log:
            Update to version 22.23.4

This rebase plus the accumulated bundled-dependency updates address the
security issues below. Several were already fixed in earlier 22.23.x
builds but their trackers were never closed; they are resolved here.

Node.js core:
  CVE-2026-105481, CVE-2026-105482, CVE-2026-106069, CVE-2026-106073,
  CVE-2026-106074, CVE-2026-111497 (fixed in 22.23.4; no Fedora tracker)
  CVE-2026-48617, CVE-2026-48931 (22.23.0)
  CVE-2026-56846, CVE-2026-56847, CVE-2026-56848, CVE-2026-58039,
  CVE-2026-58040, CVE-2026-58041, CVE-2026-58042, CVE-2026-58043,
  CVE-2026-58044, CVE-2026-58045 (22.23.2)
Bundled undici 6.29.1:
  CVE-2026-18540, CVE-2026-19534, CVE-2026-84890, CVE-2026-84947,
  CVE-2026-85008, CVE-2026-85014, CVE-2026-85024
Bundled node-tar 7.5.22:
  CVE-2026-53655, CVE-2026-59871, CVE-2026-59873, CVE-2026-59874,
  CVE-2026-59875
Bundled brace-expansion 2.1.6:
  CVE-2026-13149, CVE-2026-69152, CVE-2026-102276, CVE-2026-102278

Resolves: rhbz#2558204
Resolves: rhbz#2511721
Resolves: rhbz#2515310
Resolves: rhbz#2512131
Resolves: rhbz#2513855
Resolves: rhbz#2512447
Resolves: rhbz#2512501
Resolves: rhbz#2512130
Resolves: rhbz#2513630
Resolves: rhbz#2513849
Resolves: rhbz#2512485
Resolves: rhbz#2513649
Resolves: rhbz#2513645
Resolves: rhbz#2531719
Resolves: rhbz#2530856
Resolves: rhbz#2530854
Resolves: rhbz#2540151
Resolves: rhbz#2540155
Resolves: rhbz#2530900
Resolves: rhbz#2530903
Resolves: rhbz#2498655
Resolves: rhbz#2498750
Resolves: rhbz#2498764
Resolves: rhbz#2498792
Resolves: rhbz#2498779
Resolves: rhbz#2494970
Resolves: rhbz#2511800
Resolves: rhbz#2550225
Resolves: rhbz#2550333

---
diff --git a/0001-fix-build-with-shared-brotli.patch b/0001-fix-build-with-shared-brotli.patch
new file mode 100644
index 0000000..82bcecb
--- /dev/null
+++ b/0001-fix-build-with-shared-brotli.patch
@@ -0,0 +1,172 @@
+From ab1673e67f05dfce7af03bf7ba625055defcea8f Mon Sep 17 00:00:00 2001
+From: lazerg <lazerg2@gmail.com>
+Date: Wed, 21 Oct 2026 16:42:03 +0500
+Subject: [PATCH 1/3] src: fix build with `--shared-brotli`
+
+Assisted-by: Claude Code
+Signed-off-by: lazerg <lazerg2@gmail.com>
+---
+ node.gypi                                | 2 ++
+ src/node_zlib.cc                         | 2 ++
+ test/parallel/test-zlib-invalid-input.js | 2 +-
+ unofficial.gni                           | 3 +++
+ 4 files changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/node.gypi b/node.gypi
+index 9eb972adc47f..c07082d49048 100644
+--- a/node.gypi
++++ b/node.gypi
+@@ -252,6 +252,8 @@
+ 
+     [ 'node_shared_brotli=="false"', {
+       'dependencies': [ 'deps/brotli/brotli.gyp:brotli' ],
++    }, {
++      'defines': [ 'NODE_SHARED_BROTLI' ],
+     }],
+ 
+     [ 'node_use_sqlite=="true" and node_shared_sqlite=="false"', {
+diff --git a/src/node_zlib.cc b/src/node_zlib.cc
+index d25662bdb983..6c7753da33db 100644
+--- a/src/node_zlib.cc
++++ b/src/node_zlib.cc
+@@ -2302,7 +2302,9 @@ void DefineZlibConstants(Local<Object> target) {
+   NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_FORMAT_PADDING_1);
+   NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_FORMAT_PADDING_2);
+   NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_FORMAT_DISTANCE);
++#ifndef NODE_SHARED_BROTLI
+   NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH);
++#endif
+   NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET);
+   NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_INVALID_ARGUMENTS);
+   NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES);
+diff --git a/test/parallel/test-zlib-invalid-input.js b/test/parallel/test-zlib-invalid-input.js
+index 40958b074445..6b2c9b564de1 100644
+--- a/test/parallel/test-zlib-invalid-input.js
++++ b/test/parallel/test-zlib-invalid-input.js
+@@ -89,7 +89,7 @@ Object.defineProperty(spoofedLength, 'byteLength', { get: () => 5000 });
+   deflate.close();
+ }
+ 
+-{
++if (!process.config.variables.node_shared_brotli) {
+   // A block switch is invalid when the stream declares only one block type.
+   const invalidBlockSwitch = Buffer.from(
+     '200010414141fcffff07002228f00b60f7f41f000000',
+diff --git a/unofficial.gni b/unofficial.gni
+index 5878f079d94e..d88fadd1212f 100644
+--- a/unofficial.gni
++++ b/unofficial.gni
+@@ -58,6 +58,9 @@ template("node_gn_build") {
+     if (v8_enable_i18n_support) {
+       defines += [ "NODE_HAVE_I18N_SUPPORT=1" ]
+     }
++    if (node_shared_brotli) {
++      defines += [ "NODE_SHARED_BROTLI" ]
++    }
+   }
+ 
+   config("node_external_config") {
+
+From 67111ab20c74d6011c1b9272bff21764637d3f58 Mon Sep 17 00:00:00 2001
+From: lazerg <lazerg2@gmail.com>
+Date: Thu, 22 Oct 2026 08:05:37 +0500
+Subject: [PATCH 2/3] src: derive brotli decoder constants from header
+
+Assisted-by: Claude Code
+Signed-off-by: lazerg <lazerg2@gmail.com>
+---
+ node.gypi                                |  2 --
+ src/node_zlib.cc                         | 38 +++---------------------
+ test/parallel/test-zlib-invalid-input.js |  2 +-
+ unofficial.gni                           |  3 --
+ 4 files changed, 5 insertions(+), 40 deletions(-)
+
+diff --git a/node.gypi b/node.gypi
+index c07082d49048..9eb972adc47f 100644
+--- a/node.gypi
++++ b/node.gypi
+@@ -252,8 +252,6 @@
+ 
+     [ 'node_shared_brotli=="false"', {
+       'dependencies': [ 'deps/brotli/brotli.gyp:brotli' ],
+-    }, {
+-      'defines': [ 'NODE_SHARED_BROTLI' ],
+     }],
+ 
+     [ 'node_use_sqlite=="true" and node_shared_sqlite=="false"', {
+diff --git a/src/node_zlib.cc b/src/node_zlib.cc
+index 6c7753da33db..a34905c3e3a8 100644
+--- a/src/node_zlib.cc
++++ b/src/node_zlib.cc
+@@ -2280,40 +2280,10 @@ void DefineZlibConstants(Local<Object> target) {
+   NODE_DEFINE_CONSTANT(target,
+       BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION);
+   NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_PARAM_LARGE_WINDOW);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_NO_ERROR);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_SUCCESS);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_NEEDS_MORE_INPUT);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_NEEDS_MORE_OUTPUT);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_FORMAT_RESERVED);
+-  NODE_DEFINE_CONSTANT(target,
+-      BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE);
+-  NODE_DEFINE_CONSTANT(target,
+-      BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_FORMAT_CL_SPACE);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_FORMAT_TRANSFORM);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_FORMAT_DICTIONARY);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_FORMAT_PADDING_1);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_FORMAT_PADDING_2);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_FORMAT_DISTANCE);
+-#ifndef NODE_SHARED_BROTLI
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH);
+-#endif
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_INVALID_ARGUMENTS);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES);
+-  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_UNREACHABLE);
++#define V(PREFIX, NAME, CODE)                                                  \
++  NODE_DEFINE_CONSTANT(target, BROTLI_DECODER##PREFIX##NAME);
++  BROTLI_DECODER_ERROR_CODES_LIST(V, )
++#undef V
+ 
+   // Zstd constants
+   NODE_DEFINE_CONSTANT(target, ZSTD_e_continue);
+diff --git a/test/parallel/test-zlib-invalid-input.js b/test/parallel/test-zlib-invalid-input.js
+index 6b2c9b564de1..c27668c0c9cd 100644
+--- a/test/parallel/test-zlib-invalid-input.js
++++ b/test/parallel/test-zlib-invalid-input.js
+@@ -89,7 +89,7 @@ Object.defineProperty(spoofedLength, 'byteLength', { get: () => 5000 });
+   deflate.close();
+ }
+ 
+-if (!process.config.variables.node_shared_brotli) {
++if (zlib.constants.BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH) {
+   // A block switch is invalid when the stream declares only one block type.
+   const invalidBlockSwitch = Buffer.from(
+     '200010414141fcffff07002228f00b60f7f41f000000',
+diff --git a/unofficial.gni b/unofficial.gni
+index d88fadd1212f..5878f079d94e 100644
+--- a/unofficial.gni
++++ b/unofficial.gni
+@@ -58,9 +58,6 @@ template("node_gn_build") {
+     if (v8_enable_i18n_support) {
+       defines += [ "NODE_HAVE_I18N_SUPPORT=1" ]
+     }
+-    if (node_shared_brotli) {
+-      defines += [ "NODE_SHARED_BROTLI" ]
+-    }
+   }
+ 
+   config("node_external_config") {

diff --git a/nodejs22.spec b/nodejs22.spec
index 0714139..4f2a417 100644
--- a/nodejs22.spec
+++ b/nodejs22.spec
@@ -3,7 +3,7 @@
 %{load:%{_sourcedir}/nodejs.srpm.macros}
 
 # === Versions of any software shipped in the main nodejs tarball
-%nodejs_define_version node 1:22.23.3-%{autorelease} -p
+%nodejs_define_version node 1:22.23.4-%{autorelease} -p
 
 # Special release for sub-packages with their own version string.
 # The complex release string ensures that the subpackage release is always increasing,
@@ -15,44 +15,44 @@
 # expect anything between the markers to be overwritten on any update.
 
 # BEGIN automatic-version-macros  # DO NOT REMOVE THIS LINE!
-# Version from node-v22.23.3/src/node_version.h
+# Version from node-v22.23.4/src/node_version.h
 %global node_soversion 127
 
-# Version from node-v22.23.3/deps/ada/ada.h
+# Version from node-v22.23.4/deps/ada/ada.h
 %nodejs_define_version ada 2.9.2
-# Version from node-v22.23.3/deps/brotli/c/common/version.h
+# Version from node-v22.23.4/deps/brotli/c/common/version.h
 %nodejs_define_version brotli 1.1.0
-# Version from node-v22.23.3/deps/cares/include/ares_version.h
-%nodejs_define_version c_ares 1.34.8
-# Version from node-v22.23.3/deps/histogram/include/hdr/hdr_histogram_version.h
+# Version from node-v22.23.4/deps/cares/include/ares_version.h
+%nodejs_define_version c_ares 1.34.9
+# Version from node-v22.23.4/deps/histogram/include/hdr/hdr_histogram_version.h
 %nodejs_define_version histogram 0.11.9
-# Version from node-v22.23.3/tools/icu/current_ver.dep
+# Version from node-v22.23.4/tools/icu/current_ver.dep
 %nodejs_define_version icu 78.3 -p
-# Version from node-v22.23.3/deps/uv/include/uv/version.h
+# Version from node-v22.23.4/deps/uv/include/uv/version.h
 %nodejs_define_version libuv 1.51.0
-# Version from node-v22.23.3/deps/llhttp/include/llhttp.h
+# Version from node-v22.23.4/deps/llhttp/include/llhttp.h
 %nodejs_define_version llhttp 9.4.3
-# Version from node-v22.23.3/deps/nghttp2/lib/includes/nghttp2/nghttp2ver.h
+# Version from node-v22.23.4/deps/nghttp2/lib/includes/nghttp2/nghttp2ver.h
 %nodejs_define_version nghttp2 1.69.0
-# Version from node-v22.23.3/deps/ngtcp2/nghttp3/lib/includes/nghttp3/version.h
+# Version from node-v22.23.4/deps/ngtcp2/nghttp3/lib/includes/nghttp3/version.h
 %nodejs_define_version nghttp3 1.6.0
-# Version from node-v22.23.3/deps/ngtcp2/ngtcp2/lib/includes/ngtcp2/version.h
+# Version from node-v22.23.4/deps/ngtcp2/ngtcp2/lib/includes/ngtcp2/version.h
 %nodejs_define_version ngtcp2 1.11.0
-# Version from node-v22.23.3/deps/cjs-module-lexer/src/package.json
+# Version from node-v22.23.4/deps/cjs-module-lexer/src/package.json
 %nodejs_define_version nodejs-cjs-module-lexer 2.2.0
-# Version from node-v22.23.3/lib/punycode.js
+# Version from node-v22.23.4/lib/punycode.js
 %nodejs_define_version nodejs-punycode 2.1.0
-# Version from node-v22.23.3/deps/undici/src/package.json
-%nodejs_define_version nodejs-undici 6.28.1
-# Version from node-v22.23.3/deps/npm/package.json
+# Version from node-v22.23.4/deps/undici/src/package.json
+%nodejs_define_version nodejs-undici 6.29.1
+# Version from node-v22.23.4/deps/npm/package.json
 %nodejs_define_version npm 1:10.9.9-%{nodejs_subpackage_release}
-# Version from node-v22.23.3/deps/sqlite/sqlite3.h
-%nodejs_define_version sqlite 3.51.3
-# Version from node-v22.23.3/deps/uvwasi/include/uvwasi.h
+# Version from node-v22.23.4/deps/sqlite/sqlite3.h
+%nodejs_define_version sqlite 3.53.4
+# Version from node-v22.23.4/deps/uvwasi/include/uvwasi.h
 %nodejs_define_version uvwasi 0.0.23
-# Version from node-v22.23.3/deps/v8/include/v8-version.h
+# Version from node-v22.23.4/deps/v8/include/v8-version.h
 %nodejs_define_version v8 3:12.4.254.21-%{nodejs_subpackage_release} -p
-# Version from node-v22.23.3/deps/zlib/zlib.h
+# Version from node-v22.23.4/deps/zlib/zlib.h
 %nodejs_define_version zlib 1.3.1
 # END automatic-version-macros  # DO NOT REMOVE THIS LINE!
 
@@ -167,6 +167,7 @@ Source101:      nodejs.srpm.macros
 0001-fips-disable-options.patch
 0002-CVE-2026-42338-ip-address-security-fix.patch
 0001-Update-brace-expansion-to-version-2.1.6.patch
+0001-fix-build-with-shared-brotli.patch
 
 %description
 Node.js is a platform built on Chrome's JavaScript runtime

diff --git a/sources b/sources
index a057205..a5e29b6 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,4 @@
-SHA512 (node-v22.23.3-stripped.tar.gz) = 48c88338883a69dea1529a7ff1cb501fcacbd94306e130934ecd1178520800cf580b149c8c4de7961b55d66f8aed3b48adf22f9f85028aec467245b6b89315d6
+SHA512 (node-v22.23.4-stripped.tar.gz) = b1f395ccb360e4654718914ec938338eaa518e76416958dec5eebf823a924c990d97a6bd1b7612d83e3bf4b51e12d8b91ae9329416b4776684071abeb6c5f5c2
 SHA512 (icu4c-78.3-data-bin-b.zip) = 99e984f706423eccd14507c43d479a116a69ccbcf28af765d4dad7d6397eaa9be60208febf45efefc1932479c7b26d3246d2c08b20f99ad9b81512761726b5a4
 SHA512 (icu4c-78.3-data-bin-l.zip) = 4f0f083fe62c35da76a150498e04230bc2dfba6c07f32781f5173c13c3e1237e4157fa312dabb69909f495b84334f1ef544244268efa667927b20350a1d3d455
-SHA512 (packaging-scripts.tar.gz) = d723b30b658ad14cb0fa61d7c2179852b4dc64dafc315e0d5ba2a30df3d054ed71bbf745d028ed6a351aa92172722b8e0319b64bf2443dc5d8c1e9aacf844967
+SHA512 (packaging-scripts.tar.gz) = 74cc5fa57fd9ff31fc6e676f2eaa70251a506f60331dbf2bbfeda8b2a64a464e0c192901f1df2e63292da6a7fe2ef16fc2ddbf573067c599932b85dc651a3115

                 reply	other threads:[~2026-10-30 11:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179336043689.1.16881234887660459964.rpms-nodejs22-a04797936f2c@fedoraproject.org \
    --to=aradchen@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox