public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/nodejs22] rawhide: Update to version 22.23.4
@ 2026-10-30 11:12 Andrei Radchenko
0 siblings, 0 replies; only message in thread
From: Andrei Radchenko @ 2026-10-30 11:12 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/nodejs22
Branch : rawhide
Commit : d647da0a3167d835abfc285902bee04c5c55d7a4
Author : Andrei Radchenko <aradchen@redhat.com>
Date : 2026-10-22T13:37:51+02:00
Stats : +198/-25 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/nodejs22/c/d647da0a3167d835abfc285902bee04c5c55d7a4?branch=rawhide
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
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---
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 2f5cb1f..e359c33 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 2: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!
@@ -169,6 +169,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 e44b134..3a95040 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,4 @@
-SHA512 (node-v22.23.3-stripped.tar.gz) = a6743420f36de85b29c97888a26e2f6c78feeb6363b86446893c34be4ff7af700bfb9122bb96c28e57e8324e774620261897884bbca9087bfc49b3197e744759
+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) = fcf224d9c9543b83efb1b6f75c019b659729a7cc09eb66a2700d0ad951b1e1aee0582fe6c2a54712e15873c97bb72feaab4471b42546892dbeae50e84a7da400
+SHA512 (packaging-scripts.tar.gz) = fb1576440d3f15a119e2db8215e3b2baf1f100a54c104d2dbece97783e24fd3c8494cc781250283bf81306b9c273e642940fe915d4ca6bde87249ffb8a54093e
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-30 11:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-30 11:12 [rpms/nodejs22] rawhide: Update to version 22.23.4 Andrei Radchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox