Yagiz Nizipli
41cc3efa23
src: use string_view for utf-8 string creation
...
PR-URL: https://github.com/nodejs/node/pull/48722
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-08-15 14:33:59 -03:00
DaisyDogs07
c3dbd0c1e4
util: use primordials.ArrayPrototypeIndexOf instead of mutable method
...
PR-URL: https://github.com/nodejs/node/pull/48586
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2023-08-15 14:33:59 -03:00
Chengzhong Wu
ea547849fd
doc: expand on squashing and rebasing to land a PR
...
PR-URL: https://github.com/nodejs/node/pull/48751
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2023-08-15 14:33:58 -03:00
Tobias Nießen
30ea480135
permission: fix data types in PrintTree
...
* The first argument `node` should be a const pointer.
* The second argument `spaces` should not be a signed integer type.
* The local variable `child` should be size_t.
* The local variable `pair` in the range declaration should be a
reference type to avoid copying the object.
Refs: https://github.com/nodejs/node/pull/48677
PR-URL: https://github.com/nodejs/node/pull/48770
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2023-08-15 14:33:58 -03:00
Livia Medeiros
1f35c0ca55
child_process: harden against prototype pollution
...
PR-URL: https://github.com/nodejs/node/pull/48726
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com >
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2023-08-15 14:33:58 -03:00
Stefan Stojanovic
d5e93b1074
test: fix flaky test-string-decode.js on x86
...
Removes flakiness from the mentioned test due to the x86 memory limit
PR-URL: https://github.com/nodejs/node/pull/48750
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2023-08-15 14:33:58 -03:00
João Lenon
5aef593db3
module: implement register utility
...
PR-URL: https://github.com/nodejs/node/pull/46826
Reviewed-By: Jacob Smith <jacob@frende.me >
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2023-08-15 14:33:58 -03:00
RafaelGSS
fab6f58edf
Working on v20.5.2
...
PR-URL: https://github.com/nodejs-private/node-private/pull/465
2023-08-09 14:16:57 -03:00
RafaelGSS
9f51c55a47
2023-08-09, Version 20.5.1 (Current)
...
This is a security release.
Notable changes:
* CVE-2023-32002: Policies can be bypassed via Module.\_load (High)
* CVE-2023-32558: process.binding() can bypass the permission model through path traversal (High)
* CVE-2023-32004: Permission model can be bypassed by specifying a path traversal sequence in a Buffer (High)
* CVE-2023-32006: Policies can be bypassed by module.constructor.createRequire (Medium)
* CVE-2023-32559: Policies can be bypassed via process.binding (Medium)
* CVE-2023-32005: fs.statfs can bypass the permission model (Low)
* CVE-2023-32003: fs.mkdtemp() and fs.mkdtempSync() can bypass the permission model (Low)
* OpenSSL Security Releases
* https://mta.openssl.org/pipermail/openssl-announce/2023-July/000264.html
* https://mta.openssl.org/pipermail/openssl-announce/2023-July/000265.html
* https://mta.openssl.org/pipermail/openssl-announce/2023-July/000267.html
PR-URL: https://github.com/nodejs-private/node-private/pull/465
v20.5.1
2023-08-09 10:21:04 -03:00
RafaelGSS
7337d21484
policy: handle Module.constructor and main.extensions bypass
...
Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com >
PR-URL: https://github.com/nodejs-private/node-private/pull/417
Refs: https://hackerone.com/bugs?subject=nodejs&report_id=1960870
Refs: https://hackerone.com/bugs?subject=nodejs&report_id=2043807
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
CVE-ID: CVE-2023-32002,CVE-2023-32006
2023-08-09 10:20:33 -03:00
RafaelGSS
98a83a67e6
permission: ensure to resolve path when calling mkdtemp
...
PR-URL: https://github.com/nodejs-private/node-private/pull/464
Refs: https://hackerone.com/bugs?subject=nodejs&report_id=2037887
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2023-08-09 10:20:33 -03:00
RafaelGSS
1f0cde466b
permission: handle buffer path on fs calls
...
Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com >
Refs: https://hackerone.com/bugs?subject=nodejs&report_id=2038134
PR-URL: https://github.com/nodejs-private/node-private/pull/439
2023-08-09 10:19:49 -03:00
Tobias Nießen
cf348ec640
policy: disable process.binding() when enabled
...
process.binding() can be used to trivially bypass restrictions imposed
through a policy. Since the function is deprecated already, simply
replace it with a stub when a policy is being enabled.
Fixes: https://hackerone.com/bugs?report_id=1946470
PR-URL: https://github.com/nodejs-private/node-private/pull/397
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
CVE-ID: CVE-2023-32559
2023-08-08 21:06:29 -03:00
Node.js GitHub Bot
92300b51b4
deps: update archs files for openssl-3.0.10+quic1
...
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
PR-URL: https://github.com/nodejs/node/pull/49036
2023-08-08 21:06:29 -03:00
Node.js GitHub Bot
559698abf2
deps: upgrade openssl sources to quictls/openssl-3.0.10+quic1
...
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
PR-URL: https://github.com/nodejs/node/pull/49036
2023-08-08 21:06:29 -03:00
RafaelGSS
bd094d60ea
permission: handle fstatfs and add pm supported list
...
PR-URL: https://github.com/nodejs-private/node-private/pull/441
CVE-ID: CVE-2023-32005
2023-08-08 10:19:14 -03:00
RafaelGSS
1bf3429e8e
lib,permission: restrict process.binding when pm is enabled
...
PR-URL: https://github.com/nodejs-private/node-private/pull/438
Fixes: https://github.com/nodejs-private/node-private/issues/422
CVE-ID: CVE-2023-32558
2023-08-08 10:19:14 -03:00
Juan José Arboleda
b71cbced1a
Working on v20.5.1
...
PR-URL: https://github.com/nodejs/node/pull/48761
2023-07-20 12:41:18 -05:00
Juan José Arboleda
f13c7f5008
2023-07-18, Version 20.5.0 (Current)
...
Notable changes:
doc:
* add atlowChemi to collaborators (atlowChemi) https://github.com/nodejs/node/pull/48757
events:
* (SEMVER-MINOR) allow safely adding listener to abortSignal (Chemi Atlow) https://github.com/nodejs/node/pull/48596
fs:
* add a fast-path for readFileSync utf-8 (Yagiz Nizipli) https://github.com/nodejs/node/pull/48658
test_runner:
* (SEMVER-MINOR) add shards support (Raz Luvaton) https://github.com/nodejs/node/pull/48639
PR-URL: https://github.com/nodejs/node/pull/48761
v20.5.0
2023-07-18 13:45:29 -05:00
Raz Luvaton
0ef73ff6f0
test_runner: add shards support
...
PR-URL: https://github.com/nodejs/node/pull/48639
Backport-PR-URL: https://github.com/nodejs/node/pull/48797
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2023-07-18 12:35:54 -05:00
Yagiz Nizipli
07bfcc45ab
url: fix canParse false value when v8 optimizes
...
PR-URL: https://github.com/nodejs/node/pull/48817
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
2023-07-18 12:34:00 -05:00
Yagiz Nizipli
227e6bd898
src: pass syscall on fs.readFileSync fail operation
...
PR-URL: https://github.com/nodejs/node/pull/48815
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2023-07-17 14:04:47 -05:00
Node.js GitHub Bot
ef7728bf36
deps: update nghttp2 to 1.55.1
...
PR-URL: https://github.com/nodejs/node/pull/48790
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2023-07-17 14:04:25 -05:00
Node.js GitHub Bot
1454f02499
deps: update nghttp2 to 1.55.0
...
PR-URL: https://github.com/nodejs/node/pull/48746
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2023-07-15 23:04:39 -05:00
Rafael Gonzaga
82d6b13bf6
permission: add debug log when inserting fs nodes
...
Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com >
PR-URL: https://github.com/nodejs/node/pull/48677
Reviewed-By: Paolo Insogna <paolo@cowtech.it >
2023-07-13 17:20:03 -05:00
atlowChemi
45be29d89f
doc: add atlowChemi to collaborators
...
PR-URL: https://github.com/nodejs/node/pull/48757
Fixes: https://github.com/nodejs/node/issues/48603
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2023-07-13 17:20:03 -05:00
Yagiz Nizipli
986b46a567
fs: add a fast-path for readFileSync utf-8
...
PR-URL: https://github.com/nodejs/node/pull/48658
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2023-07-13 17:20:03 -05:00
isaacs
6406f50ab1
module: add SourceMap.lineLengths
...
Fix : #48460
PR-URL: https://github.com/nodejs/node/pull/48461
Fixes: https://github.com/nodejs/node/issues/48460
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2023-07-13 17:20:03 -05:00
Node.js GitHub Bot
fa94debf46
deps: update minimatch to 9.0.3
...
PR-URL: https://github.com/nodejs/node/pull/48704
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2023-07-13 17:20:03 -05:00
Joyee Cheung
a9a4b73653
src: make BaseObject iteration order deterministic
...
Previously we just rely on the unordered_set order to iterate over
the BaseObjects, which is not deterministic.
The iteration is only used in printing, verification, and snapshot
generation. In the first two cases the performance overhead of
sorting does not matter because they are only used for debugging.
In the last case the determinism is more important than the trivial
overhead of sorting. So this patch makes the iteration deterministic
by sorting the set first, as what is already being done when we
drain the queue.
PR-URL: https://github.com/nodejs/node/pull/48702
Refs: https://github.com/nodejs/build/issues/3043
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-07-13 17:20:03 -05:00
Ivan Trubach
67a1018389
build: do not pass target toolchain flags to host toolchain
...
Fixes target toolchain arguments being passed to the host toolchain when
cross-compiling. For example, -m64 is not available on aarch64.
PR-URL: https://github.com/nodejs/node/pull/48597
Reviewed-By: Richard Lau <rlau@redhat.com >
2023-07-13 17:20:02 -05:00
Richard Lau
4398ade426
tools: run fetch_deps.py with Python 3
...
Python 3 is now required to run `gclient`. Run `tools/v8/fetch_deps.py`,
which spawns `glient`, with Python 3.
PR-URL: https://github.com/nodejs/node/pull/48729
Fixes: https://github.com/nodejs/node/issues/48728
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com >
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2023-07-13 17:20:02 -05:00
Robert Nagy
daeb21dde9
stream: fix deadlock when pipeing to full sink
...
When piping a paused Readable to a full Writable we didn't
register a drain listener which cause the src to never
resume.
Refs: https://github.com/nodejs/node/issues/48666
PR-URL: https://github.com/nodejs/node/pull/48691
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2023-07-13 17:20:02 -05:00
an5er
69b55d2261
doc: fix ambiguity in http.md and https.md
...
PR-URL: https://github.com/nodejs/node/pull/48692
Fixes: https://github.com/nodejs/node/issues/48688
Reviewed-By: Robert Nagy <ronagy@icloud.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2023-07-13 17:20:02 -05:00
Node.js GitHub Bot
c73cfcc144
deps: update acorn to 8.10.0
...
PR-URL: https://github.com/nodejs/node/pull/48713
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com >
2023-07-13 17:20:02 -05:00
Luigi Pinca
6e82077dd4
test: deflake test-net-throttle
...
Sometimes the test completes with only two data chunks received on the
client.
Fixes: https://github.com/nodejs/node/issues/40507
PR-URL: https://github.com/nodejs/node/pull/48599
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Jacob Smith <jacob@frende.me >
Reviewed-By: LiviaMedeiros <livia@cirno.name >
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Nitzan Uziely <linkgoron@gmail.com >
2023-07-13 17:20:02 -05:00
Luigi Pinca
d378b2c822
test: move test-net-throttle to parallel
...
The test is not very resource intensive. It just writes data to a TCP
socket until backpressure is reached. Move it parallel.
PR-URL: https://github.com/nodejs/node/pull/48599
Fixes: https://github.com/nodejs/node/issues/40507
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Jacob Smith <jacob@frende.me >
Reviewed-By: LiviaMedeiros <livia@cirno.name >
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Nitzan Uziely <linkgoron@gmail.com >
2023-07-13 17:20:02 -05:00
Jordan Harband
eb0aba59b8
bootstrap: use correct descriptor for Symbol.{dispose,asyncDispose}
...
Followup to #48518 ; fixes #48699
PR-URL: https://github.com/nodejs/node/pull/48703
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Nitzan Uziely <linkgoron@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2023-07-13 17:20:02 -05:00
atlowChemi
cfa69bd48c
net: server add asyncDispose
...
PR-URL: https://github.com/nodejs/node/pull/48717
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2023-07-13 17:20:02 -05:00
atlowChemi
c47b2cbd35
dgram: socket add asyncDispose
...
PR-URL: https://github.com/nodejs/node/pull/48717
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2023-07-13 17:20:02 -05:00
atlowChemi
1295c76fce
lib: use addAbortListener
...
PR-URL: https://github.com/nodejs/node/pull/48550
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2023-07-13 17:20:02 -05:00
atlowChemi
7d843bb942
child_process: use addAbortListener
...
PR-URL: https://github.com/nodejs/node/pull/48550
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2023-07-13 17:20:02 -05:00
atlowChemi
ac11264cc5
net: use addAbortListener
...
PR-URL: https://github.com/nodejs/node/pull/48550
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2023-07-13 17:20:01 -05:00
atlowChemi
002ce31cca
dgram: use addAbortListener
...
PR-URL: https://github.com/nodejs/node/pull/48550
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2023-07-13 17:20:01 -05:00
atlowChemi
5a382d02d6
stream: use addAbortListener
...
PR-URL: https://github.com/nodejs/node/pull/48550
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2023-07-13 17:20:01 -05:00
atlowChemi
f691dca6c9
readline: use addAbortListener
...
PR-URL: https://github.com/nodejs/node/pull/48550
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2023-07-13 17:20:01 -05:00
atlowChemi
e4333ac41f
http2: use addAbortListener
...
PR-URL: https://github.com/nodejs/node/pull/48550
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2023-07-13 17:20:01 -05:00
Antoine du Hamel
cc7809df21
esm: fix emit deprecation on legacy main resolve
...
PR-URL: https://github.com/nodejs/node/pull/48664
Refs: https://github.com/nodejs/node/pull/48325
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2023-07-13 17:20:01 -05:00
Node.js GitHub Bot
38ce95d054
tools: update doc to unist-util-select@5.0.0 unist-util-visit@5.0.0
...
PR-URL: https://github.com/nodejs/node/pull/48714
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2023-07-13 17:20:01 -05:00
Node.js GitHub Bot
b25e78a998
tools: update lint-md-dependencies to rollup@3.26.2
...
PR-URL: https://github.com/nodejs/node/pull/48705
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2023-07-13 17:20:01 -05:00