nodejs.git
2 months agoHarmonize V8 stack sizes on ARM architectures to match almost all other architectures
James Addison [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
Harmonize V8 stack sizes on ARM architectures to match almost all other architectures

Last-Update: 2023-02-28
Forwarded: https://github.com/nodejs/node/issues/41163

Gbp-Pq: Topic arm64
Gbp-Pq: Name stacksize.patch

2 months agoUse system paths for builtins
Jérémy Lal [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
Use system paths for builtins

Last-Update: 2023-02-22
Forwarded: not-needed

Gbp-Pq: Topic build
Gbp-Pq: Name test_process_versions.patch

2 months agofix link to home in html api
Jérémy Lal [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
fix link to home in html api

Forwarded: not needed, in conflict with the meaning of home page
Last-Update: 06-11-2022

Gbp-Pq: Topic build
Gbp-Pq: Name doc_template_home.html

2 months agoallow vfp2 and allow setting arm_version option
Jérémy Lal [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
allow vfp2 and allow setting arm_version option

Last-Update: 2022-08-29
Forwarded: https://github.com/nodejs/node/issues/44357

Gbp-Pq: Topic armel
Gbp-Pq: Name configure.patch

2 months agotest does not pass on riscv64
Jérémy Lal kapouer@melix.org, Bo YU [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
test does not pass on riscv64

Last-Update: 2022-12-14
Forwarded: not-yet

Gbp-Pq: Topic riscv
Gbp-Pq: Name flaky_tests.patch

2 months agoskip buffer NaN internal representation check this fails on whatever archs having...
Jérémy Lal [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
skip buffer NaN internal representation check this fails on whatever archs having other internal representations of NaN.

Last-Update: 2022-05-02
Forwarded: https://github.com/nodejs/node/issues/42945

Gbp-Pq: Topic build
Gbp-Pq: Name skip-buffer-nan-internal-check.patch

2 months agofix double register usage on mipsel
Jérémy Lal [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
fix double register usage on mipsel

Forwarded: not-yet
Last-Update: 2022-06-15

Gbp-Pq: Topic mips
Gbp-Pq: Name mipsel_even_register_fix.patch

2 months agomipsel in debian supports 32-bit processors
Jérémy Lal [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
mipsel in debian supports 32-bit processors

Forwarded: not-needed
Last-Update: 2021-11-03

Gbp-Pq: Topic mips
Gbp-Pq: Name mipsel_is_32.patch

2 months agomksnapshot uses too much memory on 32-bit mipsel
Jérémy Lal [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
mksnapshot uses too much memory on 32-bit mipsel

Last-Update: 2020-06-03
Forwarded: https://bugs.chromium.org/p/v8/issues/detail?id=10586

Gbp-Pq: Topic mips
Gbp-Pq: Name less_mem.patch

2 months agouse configuration directive to set mips fpu mode
YunQiang Su [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
use configuration directive to set mips fpu mode

Forwarded: https://github.com/paul99/v8m-rb/issues/192
Last-Update: 2015-09-29

Gbp-Pq: Topic mips
Gbp-Pq: Name fpu.patch

2 months agofix compilation error on mipsel target
Jérémy Lal [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
fix compilation error on mipsel target

Last-Update: 2021-10-28
Forwarded: https://github.com/nodejs/node/issues/40624

Gbp-Pq: Topic mips
Gbp-Pq: Name compilation_error.patch

2 months agoremove google font from template.html, and link to local
Jérémy Lal [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
remove google font from template.html, and link to local

Last-Update: 2015-09-09
Forwarded: not-needed

Gbp-Pq: Topic dfsg
Gbp-Pq: Name privacy_breach.patch

2 months agoMultiarch search path, arch triplet, DFHS path for modules
Bastien ROUCARIÈS [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
Multiarch search path, arch triplet, DFHS path for modules

Last-Update: 2018-09-30
Last-Update: 2020-03-04
Forwarded: https://github.com/nodejs/node/issues/22745
Reviewed-By: Xavier Guimard <yadd@debian.org>
Gbp-Pq: Topic dfsg
Gbp-Pq: Name multilib_modules.patch

2 months agoa test uses a benchmark that read alice.html, dfsg excluded
Jérémy Lal [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
a test uses a benchmark that read alice.html, dfsg excluded

Forwarded: not-needed
Reviewed-By: Xavier Guimard <yadd@debian.org>
Last-Update: 2020-03-04

Gbp-Pq: Topic dfsg
Gbp-Pq: Name benchmark_without_alice.patch

2 months agouse system-installed node-gyp for building test modules
Jérémy Lal [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
use system-installed node-gyp for building test modules

Last-Update: 2015-09-09
Forwarded: not-needed

Gbp-Pq: Topic deps
Gbp-Pq: Name node_gyp.patch

2 months agodo not use dns.ADDRCONFIG for localhost
Jérémy Lal [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
do not use dns.ADDRCONFIG for localhost

Last-Update: 2020-06-11
Bug-Debian: https://bugs.debian.org/962318
Forwarded: https://github.com/nodejs/node/issues/33816

it fails on IPv6-only systems. Setting it with libc fails on linux.
https://github.com/nodejs/node/issues/33279

Gbp-Pq: Topic deps
Gbp-Pq: Name localhost-no-addrconfig.patch

2 months agokeep nodejs compatible with libc-ares public headers
Jérémy Lal [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
keep nodejs compatible with libc-ares public headers

Forwarded: not-needed
Last-Update: 2021-10-20

Gbp-Pq: Topic deps
Gbp-Pq: Name cares.patch

2 months agoadapt test-ci build target for buildd
Jérémy Lal [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
adapt test-ci build target for buildd

Forwarded: not-needed
Reviewed-By: Xavier Guimard <yadd@debian.org>
Last-Update: 2020-02-09

* run tests with ./node
* remove addons from test-ci suite, because it creates a dependency loop
  nodejs -> node-gyp -> nodejs which is painful to manage.
* disabled because it requires stdin:
  + test-stdout-close-unref
  + test-regress-GH-746
* test-tick-processor fails on ppc64 and s390x, currently investigated
  https://github.com/nodejs/node/issues/2471
* test-cluster-disconnect sometimes fails on busy buildd, forwarded upstream
  https://github.com/nodejs/node/issues/3383
* test-fs-watch is flaky, might be related to https://github.com/nodejs/node/issues/4082
* huge timeout value for all platforms, buildd could be busy
* test-npm-install and test-release-npm must fail, debian package dfsg-repacked npm out
* ability to override CI_NATIVE_SUITES, CI_JS_SUITES
* disable tests failing because DNS is disabled
* sequential/test-http2-session-timeout is flaky https://github.com/nodejs/node/issues/20628

Gbp-Pq: Topic build
Gbp-Pq: Name test_ci.patch

2 months agoLink to -latomic by default
Jérémy Lal [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
Link to -latomic by default

Last-Update: 2019-10-25
Forwarded: not-needed
Bug: https://github.com/nodejs/node/pull/28532
Bug: https://github.com/nodejs/node/issues/30093

This avoids surprises on mips*el/ppc*el

Gbp-Pq: Topic build
Gbp-Pq: Name flag_atomic.patch

2 months agobuild doc using marked and js-yaml
Jérémy Lal [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
build doc using marked and js-yaml

Forwarded: not-needed
Reviewed-By: Xavier Guimard <yadd@debian.org>
Last-Update: 2021-03-03

While waiting for unified/remarked/rehyped modules to be available in debian

Gbp-Pq: Topic build
Gbp-Pq: Name doc.patch

2 months agodo not build cctest, build broken on debian
Jérémy Lal [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
do not build cctest, build broken on debian

Last-Update: 2017-12-18
Forwarded: not yet !

Gbp-Pq: Topic build
Gbp-Pq: Name cctest_disable.patch

2 months agoadd acorn, walk to shared builtins
Jérémy Lal [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
add acorn, walk to shared builtins

Last-Update: 2022-09-28
Forwarded: https://github.com/nodejs/node/pull/44376

Gbp-Pq: Topic build
Gbp-Pq: Name more_shareable_builtins.patch

2 months agodebian openssl in testing or sid (3.0.11, 3.1.4) does not seem to have that different...
Jérémy Lal [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
debian openssl in testing or sid (3.0.11, 3.1.4) does not seem to have that different behavior

Last-Update: 2023-11-03

Gbp-Pq: Topic build
Gbp-Pq: Name openssl_3011_without_new_error_message.patch

2 months ago[PATCH] Add a CipherString for nodejs
Sebastian Andrzej Siewior [Fri, 23 Sep 2022 20:39:50 +0000 (22:39 +0200)]
[PATCH] Add a CipherString for nodejs

If the default security level is overwritten at build time of openssl
then it is needed to lower it again for nodejs in order to pass the
testsuite because it is using smoil keys.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Gbp-Pq: Topic build
Gbp-Pq: Name openssl_config_explicit_lower.patch

2 months agonodejs (18.20.4+dfsg-1~deb12u2) bookworm-security; urgency=medium
Bastien Roucariès [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
nodejs (18.20.4+dfsg-1~deb12u2) bookworm-security; urgency=medium

  * Team upload
  * Fix CVE-2025-23085:
    A memory leak could occur when a remote peer abruptly closes
    the socket without sending a GOAWAY notification. Additionally,
    if an invalid header was detected by nghttp2, causing the
    connection to be terminated by the peer, the same leak was
    triggered. This flaw could lead to increased memory consumption
    and potential denial of service under certain conditions
    (Closes: #1094134)
  * Fix CVE-2025-23166:
    The C++ method SignTraits::DeriveBits() may incorrectly call
    ThrowException() based on user-supplied inputs when executing
    in a background thread, crashing the Node.js process.
    Such cryptographic operations are commonly applied to
    untrusted inputs. Thus, this mechanism potentially allows
    an adversary to remotely crash a Node.js runtime.
    (Closes: #1105832)
  * Fix CVE-2025-55131:
    A flaw in Node.js's buffer allocation logic can expose uninitialized
    memory when allocations are interrupted, when using the `vm` module
    with the timeout option. Under specific timing conditions, buffers
    allocated with `Buffer.alloc` and other `TypedArray` instances like
    `Uint8Array` may contain leftover data from previous operations,
    allowing in-process secrets like tokens or passwords to leak or
    causing data corruption. While exploitation typically requires precise
    timing or in-process code execution, it can become remotely
    exploitable when untrusted input influences workload and timeouts,
    leading to potential confidentiality and integrity impact.
  * Fix CVE-2025-59465:
    A malformed `HTTP/2 HEADERS` frame with oversized, invalid
    `HPACK` data can cause Node.js to crash by triggering an
    unhandled `TLSSocket` error `ECONNRESET`. Instead of safely
    closing the connection, the process crashes, enabling a remote
    denial of service. This primarily affects applications that
    do not attach explicit error handlers to secure sockets,
    for example: ``` server.on('secureConnection', socket =>
    { socket.on('error', err => { console.log(err) }) }) ```
  * Fix CVE-2025-59466:
    async_hooks would cause stack overflow
    exceptions to exit with code 7 (kExceptionInFatalExceptionHandler)
    instead of being catchable.
    When a stack overflow exception occurs during async_hooks callbacks
    (which use TryCatchScope::kFatal), detect the specific "Maximum call
    stack size exceeded" RangeError and re-throw it instead of immediately
    calling FatalException. This allows user code to catch the exception
    with try-catch blocks instead of requiring uncaughtException handlers.
  * Fix CVE-2025-23166:
    A flaw in Node.js TLS error handling allows remote attackers to crash
    or exhaust resources of a TLS server when `pskCallback` or
    `ALPNCallback` are in use. Synchronous exceptions thrown during these
    callbacks bypass standard TLS error handling paths (tlsClientError and
    error), causing either immediate process termination or silent file
    descriptor leaks that eventually lead to denial of service. Because
    these callbacks process attacker-controlled input during the TLS
    handshake, a remote client can repeatedly trigger the issue. This
    vulnerability affects TLS servers using PSK or ALPN callbacks across.
  * Fix CVE-2026-21710:
    A flaw in Node.js HTTP request handling causes an uncaught `TypeError`
    when a request is received with a header named `__proto__` and the
    application accesses `req.headersDistinct`. When this occurs,
    `dest["__proto__"]` resolves to `Object.prototype` rather than
    `undefined`, causing `.push()` to be called on a non-array. This
    exception is thrown synchronously inside a property getter and cannot
    be intercepted by `error` event listeners, meaning it cannot be
    handled without wrapping every `req.headersDistinct` access in a
    `try/catch`
  * Fix  CVE-2026-21713:
    A flaw in Node.js HMAC verification uses a non-constant-time
    comparison when validating user-provided signatures, potentially
    leaking timing information proportional to the number of matching
    bytes. Under certain threat models where high-resolution timing
    measurements are possible, this behavior could be exploited as a
    timing oracle to infer HMAC values. Node.js already provides
    timing-safe comparison primitives used elsewhere in the codebase,
    indicating this is an oversight rather than an intentional design
    decision.
  * Fix CVE-2026-21714:
    A memory leak occurs in Node.js HTTP/2 servers when a client sends
    WINDOW_UPDATE frames on stream 0 (connection-level) that cause the
    flow control window to exceed the maximum value of 2³¹-1. The server
    correctly sends a GOAWAY frame, but the Http2Session object is never
    cleaned up.

[dgit import unpatched nodejs 18.20.4+dfsg-1~deb12u2]

2 months agoImport nodejs_18.20.4+dfsg-1~deb12u2.debian.tar.xz
Bastien Roucariès [Mon, 6 Apr 2026 14:18:52 +0000 (16:18 +0200)]
Import nodejs_18.20.4+dfsg-1~deb12u2.debian.tar.xz

[dgit import tarball nodejs 18.20.4+dfsg-1~deb12u2 nodejs_18.20.4+dfsg-1~deb12u2.debian.tar.xz]

22 months agoImport nodejs_18.20.4+dfsg.orig.tar.xz
Jérémy Lal [Tue, 9 Jul 2024 15:36:33 +0000 (17:36 +0200)]
Import nodejs_18.20.4+dfsg.orig.tar.xz

[dgit import orig nodejs_18.20.4+dfsg.orig.tar.xz]

22 months agoImport nodejs_18.20.4+dfsg.orig-ada.tar.xz
Jérémy Lal [Tue, 9 Jul 2024 15:36:33 +0000 (17:36 +0200)]
Import nodejs_18.20.4+dfsg.orig-ada.tar.xz

[dgit import orig nodejs_18.20.4+dfsg.orig-ada.tar.xz]

22 months agoImport nodejs_18.20.4+dfsg.orig-types-node.tar.xz
Jérémy Lal [Tue, 9 Jul 2024 15:36:33 +0000 (17:36 +0200)]
Import nodejs_18.20.4+dfsg.orig-types-node.tar.xz

[dgit import orig nodejs_18.20.4+dfsg.orig-types-node.tar.xz]