DylanTet
2acbcbd8ad
url: throw error if argument length of revokeObjectURL is 0
...
Added a check to see if url wasn't included as an argument
which will then throw an error.
Fixes: https://github.com/nodejs/node/issues/50432
PR-URL: https://github.com/nodejs/node/pull/50433
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com >
2024-03-25 17:27:10 +00:00
Moshe Atlow
450163cf9b
tools: add triggers to update release links workflow
...
PR-URL: https://github.com/nodejs/node/pull/50974
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2024-03-25 17:27:09 +00:00
Deokjin Kim
9da6384f5a
lib: refactor to use validateFunction in diagnostics_channel
...
Use validateFunction to remove duplicate implementation.
PR-URL: https://github.com/nodejs/node/pull/50955
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com >
2024-03-25 17:27:07 +00:00
Node.js GitHub Bot
91cd9183d1
meta: move one or more collaborators to emeritus
...
PR-URL: https://github.com/nodejs/node/pull/50931
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2024-03-25 17:27:05 +00:00
Node.js GitHub Bot
b1442024ea
tools: update lint-md-dependencies to rollup@4.5.2
...
PR-URL: https://github.com/nodejs/node/pull/50913
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2024-03-25 17:27:04 +00:00
Rafael Gonzaga
3ff00e1e79
doc: add procedure when CVEs don't get published
...
This was the workaround provided by HackerOne team
PR-URL: https://github.com/nodejs/node/pull/50945
Refs: https://github.com/nodejs/security-wg/issues/1058
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2024-03-25 17:27:02 +00:00
Yagiz Nizipli
8a082754e0
lib,src: replace toUSVString with toWellFormed()
...
PR-URL: https://github.com/nodejs/node/pull/47342
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2024-03-25 17:27:00 +00:00
Christopher Jeffrey (JJ)
0930be6bd5
doc: fix some errors in esm resolution algorithms
...
PR-URL: https://github.com/nodejs/node/pull/50898
Reviewed-By: Guy Bedford <guybedford@gmail.com >
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2024-03-25 17:26:59 +00:00
Alex Yang
6375540507
typings: fix JSDoc in internal/modules/esm/hooks
...
PR-URL: https://github.com/nodejs/node/pull/50887
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io >
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
Reviewed-By: Jacob Smith <jacob@frende.me >
2024-03-25 17:26:57 +00:00
kylo5aby
f13643da06
benchmark: update number of iterations for util.inspect
...
PR-URL: https://github.com/nodejs/node/pull/50651
Refs: https://github.com/nodejs/node/issues/50571
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
2024-03-25 17:26:56 +00:00
Shelley Vohr
ddc7964b03
doc: reserve 121 for Electron 29
...
PR-URL: https://github.com/nodejs/node/pull/50957
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2024-03-25 17:26:54 +00:00
github-actions[bot]
625fd69b76
doc: run license-builder
...
PR-URL: https://github.com/nodejs/node/pull/50926
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2024-03-25 17:26:52 +00:00
Joyee Cheung
a4f505213e
test: log more information in SEA tests
...
- Use spawnSyncAndExitWithoutError to log more information on error.
- Use NODE_DEBUG_NATIVE to log internals
- Skip the test when available disk space < 120MB
PR-URL: https://github.com/nodejs/node/pull/50759
Refs: https://github.com/nodejs/node/issues/50740
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
2024-03-25 17:26:51 +00:00
Joyee Cheung
6df3e31bff
src: print MKSNAPSHOT debug logs to stderr
...
PR-URL: https://github.com/nodejs/node/pull/50759
Refs: https://github.com/nodejs/node/issues/50740
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
2024-03-25 17:26:49 +00:00
Marco Ippolito
6fc6a62daf
tools: fix current version check
...
PR-URL: https://github.com/nodejs/node/pull/50951
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2024-03-25 17:26:48 +00:00
Joyee Cheung
be3205ae24
lib: streamline process.binding() handling
...
- Make processBindingAllowList a separate list from
runtimeDeprecatedList and legacyWrapperList instead of being
an umbrella one, so it's easier to see the stages the bindings
are in.
- Cache process.binding() results so we don't need to mutate
runtimeDeprecatedList.
PR-URL: https://github.com/nodejs/node/pull/50773
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
Reviewed-By: James M Snell <jasnell@gmail.com >
2024-03-25 17:26:46 +00:00
Joyee Cheung
f18269607a
doc: document non-node_modules-only runtime deprecation
...
We already have this special kind of runtime deprecation for
Buffer constructors which does not fit into the original
description of runtiem deprecations. Document this kind of
deprecation separately.
PR-URL: https://github.com/nodejs/node/pull/50748
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2024-03-25 17:26:44 +00:00
Joyee Cheung
c91b817a5c
test: consolidate utf8 text fixtures in tests
...
We previously used a text that appears to be an excerpt of
https://zh.wikipedia.org/wiki/%E5%8D%97%E8%B6%8A%E5%9B%BD
and can have copyright/license complications. It may
also include some geopolitical nuances. The text has been
repeated through out the code base without much reuse.
This patch consolidates the fixtures by adding a common helper
string as `fixtures.utf8TestText` which is identical to a copy
in test/fixtures/utf8_test_text.txt. It also updates the text
to a copy of 蘭亭集序, It was chosen because:
1. It's a well-known Chinese classical piece written in 353 CE
and therefore in public domain. The string is copied from
https://zh.wikisource.org/zh-hant/%E8%98%AD%E4%BA%AD%E9%9B%86%E5%BA%8F
which contains a disclaimer of copyright for this reason.
2. The text is in suitable length for general UTF8 string
read/write tests (including punctuations, 389 code points and
1167 bytes).
3. This is also commonly used as reference text for Chinese text
layout tests.
4. It's a timeless and harmless preface for a collection of poems,
written by a uncontroversial figure who passed away >1600 years
ago and contains no geopolitical nuances. Background and an
English translation of this text can be found at
https://en.wikipedia.org/wiki/Lantingji_Xu
PR-URL: https://github.com/nodejs/node/pull/50732
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io >
2024-03-25 17:26:43 +00:00
theanarkh
5f8e7a0fdb
doc: add doc for Unix abstract socket
...
PR-URL: https://github.com/nodejs/node/pull/50904
Refs: https://github.com/nodejs/node/pull/49667
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Paolo Insogna <paolo@cowtech.it >
2024-03-25 17:26:41 +00:00
Dima Demakov
e0598787e0
doc: remove flicker on page load on dark theme
...
Theme applying logic get loaded and executed in async mode, so often
there is a
delay in applying the proper theme to a page which leads to flicker on
dark theme. Resolved by moving critical logic to the page head
PR-URL: https://github.com/nodejs/node/pull/50942
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Claudio Wunder <cwunder@gnome.org >
2024-03-25 17:26:39 +00:00
Joyee Cheung
26a06b093b
test: give more time to GC in test-shadow-realm-gc-*
...
When --node-builtin-modules-path is used, we read and create
new strings for builtins in each realm which increases the memory
usage. As a result GC may not be able to keep up with the
allocation done in the loop in the test.
As a workaround, give GC a bit more time by waiting for a timer
in the loop.
PR-URL: https://github.com/nodejs/node/pull/50735
Refs: https://github.com/nodejs/node/issues/50726
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2024-03-25 17:26:38 +00:00
Aras Abbasi
db7459b57b
errors: improve hideStackFrames
...
PR-URL: https://github.com/nodejs/node/pull/49990
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2024-03-25 17:26:36 +00:00
Damian Krzeminski
ade6614067
stream: add support for deflate-raw format to webstreams compression
...
this change makes `deflate-raw` a valid parameter for both
CompressionStream and DecompressionStream constructors
it makes node's implementation consistent with what modern browsers
support and what specification calls for
see: https://wicg.github.io/compression/#compression-stream
PR-URL: https://github.com/nodejs/node/pull/50097
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
2024-03-25 17:22:52 +00:00
Michaël Zasso
4ee7f29657
deps: update timezone to 2024a
...
PR-URL: https://github.com/nodejs/node/pull/51723
Backport-PR-URL: https://github.com/nodejs/node/pull/51972
Refs: https://github.com/unicode-org/icu/releases/tag/release-74-2
Refs: https://github.com/nodejs/node/pull/51721
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io >
Reviewed-By: LiviaMedeiros <livia@cirno.name >
Reviewed-By: Steven R Loomis <srl295@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Refs: https://github.com/nodejs/node/issues/51933
2024-03-25 10:53:42 +00:00
Michaël Zasso
452d74c8b6
deps: update icu to 74.2
...
Refs: https://github.com/unicode-org/icu/releases/tag/release-74-2
PR-URL: https://github.com/nodejs/node/pull/51723
Backport-PR-URL: https://github.com/nodejs/node/pull/51972
Refs: https://github.com/nodejs/node/pull/51721
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io >
Reviewed-By: LiviaMedeiros <livia@cirno.name >
Reviewed-By: Steven R Loomis <srl295@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Refs: https://github.com/nodejs/node/issues/51933
2024-03-25 10:53:36 +00:00
Michaël Zasso
bc6bdda8b1
tools: fix update-icu.sh
...
The name of the sources MD5 file has changed.
Refs: https://github.com/unicode-org/icu/releases/tag/release-74-2
PR-URL: https://github.com/nodejs/node/pull/51723
Backport-PR-URL: https://github.com/nodejs/node/pull/51972
Refs: https://github.com/nodejs/node/pull/51721
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io >
Reviewed-By: LiviaMedeiros <livia@cirno.name >
Reviewed-By: Steven R Loomis <srl295@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Refs: https://github.com/nodejs/node/issues/51933
2024-03-25 10:53:30 +00:00
Node.js GitHub Bot
e6fc5a5ee1
deps: update timezone to 2023d
...
PR-URL: https://github.com/nodejs/node/pull/51461
Backport-PR-URL: https://github.com/nodejs/node/pull/51972
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Refs: https://github.com/nodejs/node/issues/51933
2024-03-25 10:53:25 +00:00
Node.js GitHub Bot
4ee0f8306b
deps: update icu to 74.1
...
PR-URL: https://github.com/nodejs/node/pull/50515
Backport-PR-URL: https://github.com/nodejs/node/pull/51972
Reviewed-By: Steven R Loomis <srl295@gmail.com >
Reviewed-By: LiviaMedeiros <livia@cirno.name >
Refs: https://github.com/nodejs/node/issues/51933
2024-03-25 10:53:20 +00:00
Mert Can Altın
e8f5735149
test: test surrogate pair filenames on windows
...
PR-URL: https://github.com/nodejs/node/pull/51800
Backport-PR-URL: https://github.com/nodejs/node/pull/51976
Fixes: https://github.com/nodejs/node/issues/51789
Refs: https://github.com/nodejs/node/issues/48673
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
2024-03-15 17:19:43 +00:00
Richard Lau
cb49f31480
deps: cherry-pick libuv/libuv@d09441c
...
Original commit message:
fs: fix WTF-8 decoding issue (#4092 )
We forgot to mask off the high bits from the first byte, so we ended up
always failing the subsequent range check.
Refs: https://github.com/libuv/libuv/pull/2970
Fixes: https://github.com/nodejs/node/issues/48673
PR-URL: https://github.com/nodejs/node/pull/51976
Refs: https://github.com/nodejs/node/issues/48673
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com >
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
2024-03-15 17:19:01 +00:00
kxxt
ea50540c5e
Revert "deps: V8: cherry-pick 13192d6e10fa"
...
This reverts commit bc2ebb972b , which
shouldn't be applied to v20.x.
Fix https://github.com/nodejs/unofficial-builds/issues/106
PR-URL: https://github.com/nodejs/node/pull/51495
Fixes: https://github.com/nodejs/unofficial-builds/issues/106
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Stewart X Addison <sxa@redhat.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2024-03-05 13:56:07 +00:00
Joyee Cheung
1ab9ff46a5
test: mark test-wasi as flaky on Windows on ARM
...
It has failed 22 PRs from the latest 100 CI runs.
PR-URL: https://github.com/nodejs/node/pull/51834
Refs: https://github.com/nodejs/node/issues/51822
Refs: https://github.com/nodejs/reliability/issues/790
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2024-03-05 13:51:05 +00:00
Tobias Nießen
2a7047d933
doc,crypto: further clarify RSA_PKCS1_PADDING support
...
PR-URL: https://github.com/nodejs/node/pull/51799
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2024-02-28 17:53:31 +00:00
Filip Skokan
31c4ba4dfd
doc,crypto: add changelog and note about disabled RSA_PKCS1_PADDING
...
PR-URL: https://github.com/nodejs/node/pull/51782
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
2024-02-28 17:53:25 +00:00
RafaelGSS
4036ffd909
Working on v20.11.2
...
PR-URL: https://github.com/nodejs-private/node-private/pull/544
2024-02-14 13:54:57 -03:00
marco-ippolito
9b1bf44ea9
2024-02-14, Version 20.11.1 'Iron' (LTS)
...
This is a security release.
Notable changes:
crypto:
* disable PKCS#1 padding for privateDecrypt (Michael Dawson) https://github.com/nodejs-private/node-private/pull/525
deps:
* upgrade libuv to 1.48.0 (Santiago Gimeno) https://github.com/nodejs/node/pull/51699
* update archs files for openssl-3.0.13+quic1 (Node.js GitHub Bot) https://github.com/nodejs/node/pull/51614
* upgrade openssl sources to quictls/openssl-3.0.13+quic1 (Node.js GitHub Bot) https://github.com/nodejs/node/pull/51614
* disable io\_uring support in libuv by default (Tobias Nießen) https://github.com/nodejs-private/node-private/pull/529
* fix GHSA-f74f-cvh7-c6q6/CVE-2024-24806 (Santiago Gimeno) https://github.com/nodejs/node/pull/51737
fs:
* protect against modified Buffer internals in possiblyTransformPath (Tobias Nießen) https://github.com/nodejs-private/node-private/pull/49
http:
* add maximum chunk extension size (Paolo Insogna) https://github.com/nodejs-private/node-private/pull/519
lib:
* update undici to v5.28.3 (Matteo Collina) https://github.com/nodejs-private/node-private/pull/539
* use cache fs internals against path traversal (RafaelGSS) https://github.com/nodejs-private/node-private/pull/516
src:
* fix HasOnly(capability) in node::credentials (Tobias Nießen) https://github.com/nodejs-private/node-private/pull/505
src,deps:
* disable setuid() etc if io\_uring enabled (Tobias Nießen) https://github.com/nodejs-private/node-private/pull/529
test,doc:
* clarify wildcard usage (RafaelGSS) https://github.com/nodejs-private/node-private/pull/517
zlib:
* pause stream if outgoing buffer is full (Matteo Collina) https://github.com/nodejs-private/node-private/pull/541
PR-URL: https://github.com/nodejs-private/node-private/pull/544
v20.11.1
2024-02-13 18:33:19 -03:00
RafaelGSS
d6da413aa4
test,doc: clarify wildcard usage
...
Follow-up: https://github.com/nodejs/node/pull/51209
PR-URL: https://github.com/nodejs-private/node-private/pull/517
Fixes: https://hackerone.com/bugs?subject=nodejs&report_id=2257156
CVE-ID: CVE-2024-21890
2024-02-13 14:30:49 -03:00
Rafael Gonzaga
d01dd4291d
permission: fix wildcard when children > 1
...
PR-URL: https://github.com/nodejs/node/pull/51209
Fixes: https://github.com/nodejs/node/issues/50659
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: Paolo Insogna <paolo@cowtech.it >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2024-02-13 14:30:49 -03:00
RafaelGSS
ed7d149675
lib: use cache fs internals against path traversal
...
PR-URL: https://github.com/nodejs-private/node-private/pull/516
Fixes: https://hackerone.com/bugs?subject=nodejs&report_id=2259914
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
CVE-ID: CVE-2024-21891
2024-02-13 14:30:49 -03:00
Tobias Nießen
480fc169a8
fs: protect against modified Buffer internals in possiblyTransformPath
...
Use encodeUtf8String from the encoding_binding internal binding to
convert the result of path.resolve() to a Uint8Array instead of using
Buffer.from(), whose result can be manipulated by the user by
monkey-patching internals such as Buffer.prototype.utf8Write.
HackerOne report: https://hackerone.com/reports/2218653
PR-URL: https://github.com/nodejs-private/node-private/pull/497
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
CVE-ID: CVE-2024-21896
2024-02-13 14:30:49 -03:00
Santiago Gimeno
186a6e1ffb
deps: fix GHSA-f74f-cvh7-c6q6/CVE-2024-24806
...
Refs: https://github.com/libuv/libuv/security/advisories/GHSA-f74f-cvh7-c6q6
PR-URL: https://github.com/nodejs/node/pull/51737
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
CVE-ID: CVE-2024-24806
2024-02-13 14:30:19 -03:00
Tobias Nießen
3f6addd590
src,deps: disable setuid() etc if io_uring enabled
...
Within Node.js, attempt to determine if libuv is using io_uring. If it
is, disable process.setuid() and other user identity setters.
We cannot fully prevent users from changing the process's user identity,
but this should still prevent some accidental, dangerous scenarios.
PR-URL: https://github.com/nodejs-private/node-private/pull/529
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
CVE-ID: CVE-2024-22017
2024-02-13 14:30:19 -03:00
Tobias Nießen
686da19abb
deps: disable io_uring support in libuv by default
...
setuid() does not affect libuv's internal io_uring operations if
initialized before the call to setuid(). This potentially allows the
process to perform privileged operations despite presumably having
dropped such privileges through a call to setuid(). Similar concerns
apply to other functions that modify the process's user identity.
This commit changes libuv's io_uring behavior from opt-out (through
UV_USE_IO_URING=0) to opt-in (through UV_USE_IO_URING=1) until we figure
out a better long-term solution.
PR-URL: https://github.com/nodejs-private/node-private/pull/529
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
CVE-ID: CVE-2024-22017
2024-02-13 14:30:19 -03:00
Node.js GitHub Bot
f7b44bfbce
deps: update archs files for openssl-3.0.13+quic1
...
PR-URL: https://github.com/nodejs/node/pull/51614
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2024-02-13 14:30:18 -03:00
Node.js GitHub Bot
7a30fecea2
deps: upgrade openssl sources to quictls/openssl-3.0.13+quic1
...
PR-URL: https://github.com/nodejs/node/pull/51614
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2024-02-13 14:30:18 -03:00
Matteo Collina
89bd5fc38f
lib: update undici to v5.28.3
...
Signed-off-by: Matteo Collina <hello@matteocollina.com >
PR-URL: https://github.com/nodejs-private/node-private/pull/539
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
CVE-ID: CVE-2024-24758
2024-02-13 14:29:09 -03:00
Matteo Collina
c213910aea
zlib: pause stream if outgoing buffer is full
...
Signed-off-by: Matteo Collina <hello@matteocollina.com >
PR-URL: https://github.com/nodejs-private/node-private/pull/541
Reviewed-By: Robert Nagy <ronagy@icloud.com >
Ref: https://hackerone.com/reports/2284065
CVE-ID: CVE-2024-22025
2024-02-13 14:28:59 -03:00
Paolo Insogna
77ac7c3153
http: add maximum chunk extension size
...
PR-URL: https://github.com/nodejs-private/node-private/pull/519
Fixes: https://hackerone.com/reports/2233486
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
CVE-ID: CVE-2024-22019
2024-02-13 11:54:25 -03:00
Michael Dawson
7079c062bb
crypto: disable PKCS#1 padding for privateDecrypt
...
Refs: https://hackerone.com/bugs?subject=nodejs&report_id=2269177
Disable RSA_PKCS1_PADDING for crypto.privateDecrypt() in order
to protect against the Marvin attack.
Includes a security revert flag that can be used to restore
support.
Signed-off-by: Michael Dawson <midawson@redhat.com >
PR-URL: https://github.com/nodejs-private/node-private/pull/525
Refs: https://hackerone.com/bugs?subject=nodejs&report_id=2269177
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
CVE-ID: CVE-2023-46809
2024-02-13 11:54:25 -03:00
Tobias Nießen
40ff37dfcc
src: fix HasOnly(capability) in node::credentials
...
SYS_capget with _LINUX_CAPABILITY_VERSION_3 returns the process's
permitted capabilities as two 32-bit values. To determine if the only
permitted capability is indeed CAP_NET_BIND_SERVICE, it is necessary to
check both of those values.
Not doing so creates a vulnerability that potentially allows
unprivileged users to inject code into a privileged Node.js process
through environment variables such as NODE_OPTIONS.
PR-URL: https://github.com/nodejs-private/node-private/pull/505
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
CVE-ID: CVE-2024-21892
2024-02-12 14:32:54 +01:00