Efe
dc19409f36
fs: validate statfs path
...
PR-URL: https://github.com/nodejs/node/pull/61230
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Aviv Keller <me@aviv.sh >
Reviewed-By: LiviaMedeiros <livia@cirno.name >
2026-01-14 17:21:26 -03:00
Gürgün Dayıoğlu
a617942a4a
url: add fast path to getPathFromURL decoder
...
PR-URL: https://github.com/nodejs/node/pull/60749
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Aviv Keller <me@aviv.sh >
2026-01-13 10:04:56 -03:00
Nikita Skovoroda
86bce15e96
lib: implement all 1-byte encodings in js
...
PR-URL: https://github.com/nodejs/node/pull/61093
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
2026-01-13 10:04:56 -03:00
Craig Macomber (Microsoft)
f12eb28489
esm: avoid throw when module specifier is not url
...
This particular exception is responsible for a lot of overhead when
debugging with large esm codebases with VS Code and break on caught
exceptions is enabled.
VS Code silently suppresses this exception, but the mechanism it uses
to do so is a bit slow so avoiding this common exception can speed up
loading of esm code.
In my scenario this saved over have of the startup run time
(over 20 seconds).
This should also make debugging without suppression of this exception
more pleasant in other tools such as the Chrome dev tools when
attached to NodeJs processes.
PR-URL: https://github.com/nodejs/node/pull/61000
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Jacob Smith <jacob@frende.me >
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
2026-01-13 10:04:55 -03:00
Ruben Bridgewater
11861084fd
assert,util: improve comparison performance
...
This makes sure that the toStringTag symbol is used, if available
instead of calculating the toString() value each time, if not
needed (the type checks make a brand check, so there is no need to
check the toStringTag, if non is defined on the object).
PR-URL: https://github.com/nodejs/node/pull/61176
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
2026-01-13 10:04:55 -03:00
Nikita Skovoroda
8156738b97
lib: gbk decoder is gb18030 decoder per spec
...
PR-URL: https://github.com/nodejs/node/pull/61099
Refs: https://encoding.spec.whatwg.org/#gbk-decoder
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-01-13 10:04:55 -03:00
Mert Can Altin
09b5396523
util: optimize toASCIILower function using V8s native toLowerCase
...
PR-URL: https://github.com/nodejs/node/pull/61107
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-01-13 10:04:54 -03:00
René
bd0942f4f5
stream: do not pass readable.compose() output via Readable.from()
...
PR-URL: https://github.com/nodejs/node/pull/60907
Fixes: https://github.com/nodejs/node/issues/55203
Reviewed-By: Raz Luvaton <rluvaton@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2026-01-13 10:04:53 -03:00
Ruben Bridgewater
e61cfdbf50
assert: use a set instead of an array for faster lookup
...
This is a very small improvement for error creation.
PR-URL: https://github.com/nodejs/node/pull/61076
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-01-13 10:04:52 -03:00
Ruben Bridgewater
4ef4f759cb
assert,util: fix deep comparing invalid dates skipping properties
...
The property comparison of invalid dates regressed when starting
to handle invalid dates as being equal.
PR-URL: https://github.com/nodejs/node/pull/61076
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-01-13 10:04:52 -03:00
Ruben Bridgewater
c8fccd585f
assert,util: improve deep comparison performance
...
PR-URL: https://github.com/nodejs/node/pull/61076
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-01-13 10:04:51 -03:00
Efe
6da85b576b
events: remove eventtarget custom inspect branding
...
PR-URL: https://github.com/nodejs/node/pull/61128
Reviewed-By: Aviv Keller <me@aviv.sh >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2026-01-13 10:04:51 -03:00
Xavier Stouder
3c5dc03f06
os: freeze signals constant
...
Remove the ability to mutate signals constant as doing so can lead to
unexpected behavior, notably when spawning child process.
Fixes: https://github.com/nodejs/node/issues/44749
PR-URL: https://github.com/nodejs/node/pull/61038
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Aviv Keller <me@aviv.sh >
2026-01-13 10:04:51 -03:00
Joyee Cheung
2d560e42fa
module: fix sync resolve hooks for require with node: prefixes
...
Previously, when require()-ing builtins with the node: prefix,
the sync resolve hooks were not properly invoked, and load hooks
could not override the builtin's format. This fixes the
handling and enables redirecting prefixed built-ins to on-disk
files and overriding them with other module types via hooks.
PR-URL: https://github.com/nodejs/node/pull/61088
Fixes: https://github.com/nodejs/node/issues/60005
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
2026-01-13 10:04:51 -03:00
Ruben Bridgewater
1dd15c9502
util: limit inspect to only show own properties
...
`Error`'s `cause` and `errors` properties would be visible even if these
were not own properties. This is changed to align with all other
parts of the `inspect` handling.
Fixes: https://github.com/nodejs/node/issues/60717
PR-URL: https://github.com/nodejs/node/pull/61032
Reviewed-By: Jordan Harband <ljharb@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-01-13 10:04:51 -03:00
Gürgün Dayıoğlu
fa927c31da
process: preserve AsyncLocalStorage in queueMicrotask only when needed
...
PR-URL: https://github.com/nodejs/node/pull/60913
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
2026-01-13 10:04:50 -03:00
René
3e550d30d6
test_runner: fix lazy test.assert accessor
...
PR-URL: https://github.com/nodejs/node/pull/61097
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com >
Reviewed-By: Jacob Smith <jacob@frende.me >
Reviewed-By: Aviv Keller <me@aviv.sh >
2026-01-13 10:04:50 -03:00
Dario Piotrowicz
571cec49e0
repl: fix getters triggering side effects during completion
...
PR-URL: https://github.com/nodejs/node/pull/61043
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Aviv Keller <me@aviv.sh >
2026-01-13 10:04:50 -03:00
Joyee Cheung
15c3655b9a
module: preserve URL in the parent created by createRequire()
...
Previously, createRequire() does not preserve the URL it gets
passed in the mock parent module created, which can be
observable if it's used together with module.registerHooks().
This patch adds preservation of the URL if createRequire()
is invoked with one.
PR-URL: https://github.com/nodejs/node/pull/60974
Fixes: https://github.com/nodejs/node/issues/60973
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
2026-01-13 10:04:48 -03:00
Antoine du Hamel
d8f1dea0d3
lib: enforce use of URLParse
...
There's no reason to use the user-mutable `URL.parse` in core.
PR-URL: https://github.com/nodejs/node/pull/61016
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Jacob Smith <jacob@frende.me >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Erick Wendel <erick.workspace@gmail.com >
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-01-13 10:04:48 -03:00
Robin van Wijngaarden
6b577c80bb
fs: detect dot files when using globstar
...
Using globstar in glob pattern should not prevent dot (hidden) files
from being matched.
PR-URL: https://github.com/nodejs/node/pull/61012
Fixes: https://github.com/nodejs/node/issues/56321
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
2026-01-13 10:04:47 -03:00
Antoine du Hamel
24795530bb
lib,test: enforce use of assert.fail via a lint rule
...
PR-URL: https://github.com/nodejs/node/pull/61004
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
2026-01-13 10:04:47 -03:00
Erick Wendel
5051d90100
util: add convertProcessSignalToExitCode utility
...
Add convertProcessSignalToExitCode() to convert signal names to POSIX
exit codes (128 + signal number). Exposed in public util API.
Refs: https://github.com/nodejs/node/pull/60720
PR-URL: https://github.com/nodejs/node/pull/60963
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2026-01-13 10:04:47 -03:00
azadgupta1
98b6dc1181
util: fix parseArgs skipping positional arg with --eval and --print
...
PR-URL: https://github.com/nodejs/node/pull/60814
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
Reviewed-By: Ilyas Shabi <ilyasshabi94@gmail.com >
2026-01-13 10:04:47 -03:00
Pietro Marchini
ec142be1ed
test_runner: propagate V8 options to child process
...
PR-URL: https://github.com/nodejs/node/pull/60999
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Jacob Smith <jacob@frende.me >
2026-01-13 10:04:44 -03:00
Joyee Cheung
8470e2993b
http: add http.setGlobalProxyFromEnv()
...
This adds an API to dynamically enable built-in proxy support
for all of fetch() and http.request()/https.request(), so
that users do not have to be aware of them all and configure them
one by one.
PR-URL: https://github.com/nodejs/node/pull/60953
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Tim Perry <pimterry@gmail.com >
2026-01-13 10:04:44 -03:00
Chengzhong Wu
42666c241a
lib,src: isInsideNodeModules should test on the first non-internal frame
...
PR-URL: https://github.com/nodejs/node/pull/60991
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Daniel Lemire <daniel@lemire.me >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-01-13 10:04:44 -03:00
Joyee Cheung
8f6fada8f1
cli: add --require-module/--no-require-module
...
To replace --experimental-require-module and
--no-experimental-require-module. The experimental
ones are left as legacy aliases.
PR-URL: https://github.com/nodejs/node/pull/60959
Reviewed-By: Jacob Smith <jacob@frende.me >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Jordan Harband <ljharb@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2026-01-13 10:04:43 -03:00
mag123c
a7b92e0677
esm: improve error messages for ambiguous module syntax
...
PR-URL: https://github.com/nodejs/node/pull/60376
Fixes: https://github.com/nodejs/node/issues/60322
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-01-13 10:04:42 -03:00
Livia Medeiros
b2736646b6
http2,zlib: prefer call() over apply() if argument list is not array
...
PR-URL: https://github.com/nodejs/node/pull/60834
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-01-13 10:04:41 -03:00
Mert Can Altin
550e8a7a69
src: implement Windows-1252 encoding support and update related tests
...
PR-URL: https://github.com/nodejs/node/pull/60893
Fixes: https://github.com/nodejs/node/issues/60888
Fixes: https://github.com/nodejs/node/issues/59515
Fixes: https://github.com/nodejs/node/issues/56542
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2026-01-13 10:04:41 -03:00
Jan Olaf Martin
e6a05cfb4f
module: allow subpath imports that start with #/
...
It's a common ecosystem pattern to map a source root directory to
`@/` but it requires special tooling support. This turns `#/*` into
a more realistic alternative for that pattern.
PR-URL: https://github.com/nodejs/node/pull/60864
Reviewed-By: Guy Bedford <guybedford@gmail.com >
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
Reviewed-By: Claudio Wunder <cwunder@gnome.org >
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com >
2026-01-13 10:04:41 -03:00
René
90c12a252a
stream: fix isErrored/isWritable for WritableStreams
...
PR-URL: https://github.com/nodejs/node/pull/60905
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2026-01-13 10:04:38 -03:00
Michaël Zasso
1977348ae0
lib,test: fix jsdoc comments
...
To prepare for eslint-plugin-jsdoc update.
Refs: https://github.com/nodejs/node/pull/60535
PR-URL: https://github.com/nodejs/node/pull/60870
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-01-13 10:04:35 -03:00
Yves M.
b6903aaf8d
util: safely inspect getter errors whose message throws
...
PR-URL: https://github.com/nodejs/node/pull/60684
Fixes: https://github.com/nodejs/node/issues/60683
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-01-13 10:04:34 -03:00
Antoine du Hamel
9023b3f9ce
lib: add lint rules for reflective function calls
...
PR-URL: https://github.com/nodejs/node/pull/60825
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Jordan Harband <ljharb@gmail.com >
Reviewed-By: LiviaMedeiros <livia@cirno.name >
2026-01-13 10:04:32 -03:00
René
aefbe4ba47
events: repurpose events.listenerCount() to accept EventTargets
...
PR-URL: https://github.com/nodejs/node/pull/60214
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2026-01-13 10:04:32 -03:00
Aliaksandr
3127a2b1e7
test_runner: fix line feed escaping in JUnit
...
Replaces line feed characters with the correct character reference in
XML attribute values.
PR-URL: https://github.com/nodejs/node/pull/60274
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
2026-01-13 10:04:22 -03:00
Gürgün Dayıoğlu
a6ac8bd2a5
url: remove array.reduce usage
...
PR-URL: https://github.com/nodejs/node/pull/60748
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Jordan Harband <ljharb@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2026-01-13 10:04:22 -03:00
Livia Medeiros
2979113136
lib: prefer call() over apply() if argument list is not array
...
PR-URL: https://github.com/nodejs/node/pull/60796
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-01-13 10:04:20 -03:00
Đỗ Trọng Hải
377aed336c
repl: tab completion targets <class> instead of new <class>
...
Signed-off-by: hainenber <dotronghai96@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/60319
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
2026-01-13 10:04:20 -03:00
Antoine du Hamel
08fb6c9ba4
test_runner: simplify code and make it more consistent
...
PR-URL: https://github.com/nodejs/node/pull/60777
Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com >
Reviewed-By: Xuguang Mei <meixuguang@gmail.com >
Reviewed-By: Ilyas Shabi <ilyasshabi94@gmail.com >
2026-01-13 10:04:20 -03:00
Hans Klunder
2b36433f4a
lib: add support for readable byte streams to .toWeb()
...
Add support for the creation of ReadableByteStream to Readable.toWeb()
and Duplex.toWeb()
This enables the use of .getReader({ mode: "byob" }) on
e.g. socket().toWeb()
Refs: https://github.com/nodejs/node/issues/56004#issuecomment-2908265316
Refs: https://developer.mozilla.org/en-US/docs/Web/API/Streams_API/Using_readable_byte_streams
PR-URL: https://github.com/nodejs/node/pull/58664
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev >
Reviewed-By: Mattias Buelens <mattias@buelens.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2026-01-13 10:04:03 -03:00
Gürgün Dayıoğlu
1a0c3dddb9
lib: use FastBuffer for empty buffer allocation
...
PR-URL: https://github.com/nodejs/node/pull/60558
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
2026-01-13 10:04:02 -03:00
Shima Ryuhei
a731463a60
http,https: fix double ERR_PROXY_TUNNEL emission
...
Fixes: https://github.com/nodejs/node/issues/60697
PR-URL: https://github.com/nodejs/node/pull/60699
Reviewed-By: Tim Perry <pimterry@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev >
2026-01-13 10:04:02 -03:00
Nikita Skovoroda
012a08f6eb
buffer: let Buffer.of use heap
...
PR-URL: https://github.com/nodejs/node/pull/60503
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2026-01-13 10:04:01 -03:00
Filip Skokan
9209cf67a4
lib: refactor JWK import PQC support check
...
PR-URL: https://github.com/nodejs/node/pull/60586
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2026-01-13 10:04:01 -03:00
Joyee Cheung
413db7c635
src: build v8 tick processor as built-in source text modules
...
Instead of polyfilling it with vm.SourceTextModule,
use a built-in source text module loader so that we can
also build the code cache for it at build tiem to
embed the code cache for them in the binary.
Drive-by: instead of inferring how to compile a particular
built-in at run time, do the inferring at build time,
so the function-based built-ins can be compiled using
parameters quickly looked up from a static map, and
the builtins that should be compiled as source text
modules are known internally based on extension in
the source code (at run time, the extensions are all
removed).
PR-URL: https://github.com/nodejs/node/pull/60518
Reviewed-By: Aditi Singh <aditisingh1400@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
2026-01-13 10:04:00 -03:00
Сковорода Никита Андреевич and Rafael Gonzaga
4d6b55a6d1
src,lib: refactor unsafe buffer creation to remove zero-fill toggle
...
This removes the zero-fill toggle mechanism that allowed JavaScript
to control ArrayBuffer initialization via shared memory. Instead,
unsafe buffer creation now uses a dedicated C++ API.
Refs: https://hackerone.com/reports/3405778
Co-Authored-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com >
PR-URL: https://github.com/nodejs-private/node-private/pull/759
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
CVE-ID: CVE-2025-55131
2026-01-09 18:34:02 -03:00
Matteo Collina
c357a39e14
tls: route callback exceptions through error handlers
...
Wrap pskCallback and ALPNCallback invocations in try-catch blocks
to route exceptions through owner.destroy() instead of letting them
become uncaught exceptions. This prevents remote attackers from
crashing TLS servers or causing resource exhaustion.
Fixes: https://hackerone.com/reports/3473882
PR-URL: https://github.com/nodejs-private/node-private/pull/782
PR-URL: https://github.com/nodejs-private/node-private/pull/790
CVE-ID: CVE-2026-21637
2026-01-09 18:33:16 -03:00