node/lib/internal
RafaelGSS 6cc8d58e6f src: fix HTTP2 mem leak on premature close and ERR_PROTO
This commit fixes a memory leak when the socket is
suddenly closed by the peer (without GOAWAY notification)
and when invalid header (by nghttp2) is identified and the
connection is terminated by peer.

Refs: https://hackerone.com/reports/2841362
PR-URL: https://github.com/nodejs-private/node-private/pull/650
Reviewed-By: James M Snell <jasnell@gmail.com>
CVE-ID: CVE-2025-23085
2025-01-20 14:49:43 -03:00
..
assert lib: enforce use of trailing commas 2023-04-10 22:18:20 -04:00
bootstrap lib: add api to detect whether source-maps are enabled 2023-11-15 10:34:11 +01:00
child_process lib: enforce use of trailing commas for functions 2023-04-03 07:43:55 -04:00
cluster cluster: add trailing commas in source files 2023-04-05 12:52:18 -04:00
console bootstrap: lazy load non-essential modules 2023-11-10 09:46:18 +01:00
crypto crypto: ensure invalid SubtleCrypto JWK data import results in DataError 2024-11-02 18:50:26 +01:00
debugger doc: add description for --port flag of node inspect 2023-11-26 20:32:32 +01:00
dns module, esm: jsdoc for modules files 2023-11-23 10:51:02 +01:00
fs fs: introduce dirent.parentPath 2024-03-18 16:55:24 +00:00
http2 src: fix HTTP2 mem leak on premature close and ERR_PROTO 2025-01-20 14:49:43 -03:00
legacy lib: enforce use of trailing commas 2023-04-10 22:18:20 -04:00
main test_runner,test: fix flaky test-runner-cli-concurrency.js 2023-11-27 11:57:21 +01:00
modules esm: fix broken assertion in legacyMainResolve 2024-11-07 17:51:24 +01:00
per_context timers: support Symbol.dispose 2023-09-16 15:48:44 -04:00
perf bootstrap: lazy-load Performance.prototype.timeOrigin 2023-11-10 09:45:58 +01:00
policy policy: use tamper-proof integrity check function 2023-10-13 07:33:49 -04:00
process vm: use internal versions of compileFunction and Script 2024-03-15 17:56:06 +00:00
readline readline: add paste bracket mode 2023-11-26 20:32:33 +01:00
repl repl: preserve preview on ESCAPE key press 2023-07-06 11:09:26 -04:00
source_map bootstrap: simplify initialization of source map handlers 2023-11-10 16:21:46 +01:00
streams stream: do not defer construction by one microtick 2024-03-23 18:42:18 +00:00
test lib: enforce use of trailing commas in more files 2023-04-03 07:43:56 -04:00
test_runner test_runner: add test location for FileTests 2023-11-27 11:57:21 +01:00
tls tls: fix order of setting cipher before setting cert and key 2024-03-19 16:12:59 +00:00
util src: bootstrap prepare stack trace callback in shadow realm 2023-11-10 14:21:05 +01:00
v8 v8: fix ERR_NOT_BUILDING_SNAPSHOT is not a constructor 2023-07-07 00:06:09 +03:00
vm module: use symbol in WeakMap to manage host defined options 2024-03-15 17:55:29 +00:00
watch_mode watch: decrease debounce rate 2023-10-28 12:24:50 +02:00
webstreams stream: use Buffer.from when constructor is a Buffer 2023-11-26 20:32:40 +01:00
worker worker: protect against user mutating well-known prototypes 2023-11-26 20:32:38 +01:00
abort_controller.js lib: use addAbortListener 2023-09-16 15:48:42 -04:00
assert.js
async_hooks.js bootstrap: lazy load non-essential modules 2023-11-10 09:46:18 +01:00
blob.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
blocklist.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
buffer.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
child_process.js child_process: support Symbol.dispose 2023-09-16 15:39:14 -04:00
cli_table.js
constants.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
dgram.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
dtrace.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
encoding.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
error_serdes.js lib: add support for inherited custom inspection methods 2023-09-01 10:44:56 -04:00
errors.js esm: fix hook name in error message 2024-11-02 18:42:15 +01:00
event_target.js events: remove weak listener for event target 2023-11-26 20:32:33 +01:00
file.js buffer: use private properties for brand checks in File 2023-07-06 11:09:29 -04:00
fixed_queue.js lib: fix reference leak 2022-09-26 16:13:13 -03:00
freelist.js
freeze_intrinsics.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
heap_utils.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
histogram.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
http.js http: trace http request / response 2022-08-22 19:37:17 -04:00
idna.js src: replace idna functions with ada::idna 2023-08-15 20:38:40 -04:00
inspector_async_hook.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
js_stream_socket.js net: use asserts in JS Socket Stream to catch races in future 2023-11-27 11:57:14 +01:00
linkedlist.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
mime.js lib: enforce use of trailing commas for functions 2023-04-03 07:43:55 -04:00
net.js net: rework autoSelectFamily implementation 2023-08-17 13:32:56 -04:00
options.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
priority_queue.js
promise_hooks.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
querystring.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
readme.md
repl.js repl: add trailing commas in source files 2023-04-05 12:52:25 -04:00
socket_list.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
socketaddress.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
stream_base_commons.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
structured_clone.js
timers.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
trace_events_async_hooks.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
tty.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
url.js url: validate pathToFileURL(path) argument as string 2023-11-27 11:57:14 +01:00
util.js util: add getCwdSafe internal util fn 2023-11-23 10:52:03 +01:00
v8_prof_polyfill.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
v8_prof_processor.js
validators.js lib: implement AbortSignal.any() 2023-07-17 11:26:09 -04:00
vm.js vm: reject in importModuleDynamically without --experimental-vm-modules 2024-03-15 17:56:10 +00:00
wasm_web_api.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
watchdog.js lib: add trailing commas to more internal files 2023-04-10 20:55:01 -04:00
webidl.js lib: use webidl DOMString converter in EventTarget 2023-07-07 00:06:05 +03:00
worker.js esm: move hook execution to separate thread 2023-11-23 10:19:07 +01:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.