Infrastructure vulnerabilities
Node.js
OpenJS Foundation · 59 CVE · Critical 8 · High 28 · In CISA KEV 2
Project site ↗Vendor advisories ↗
Check your version
e.g. 20.10.0 — run node -v
All tracked CVEs · 59
A buffer overflow vulnerability in the Brotli decoder (c/dec/decode.c) in Google Brotli versions 1.0.3 through 1.2.0 on all platforms allows a remote unauthenticated attacker to corrupt adjacent decoder state memory, disclose sensitive memory contents, cause a denial of service,…
- ≥ 25.0.0, < 26.12.1Fixed in 26.12.1
- ≥ 23.0.0, < 24.22.1Fixed in 24.22.1
- < 22.23.4Fixed in 22.23.4
A flaw in Node.js Permission Model enforcement can over-grant filesystem access across radix-tree prefix boundaries. Under `--permission`, an attacker who is granted access to one path can abuse boundary handling to read from or write to paths outside the intended filesystem all…
- ≥ 26.0.0, ≤ 26.5.0Affected up to 26.5.0 — see vendor advisory
- ≥ 24.0.0, ≤ 24.18.0Affected up to 24.18.0 — see vendor advisory
- ≥ 22.0, ≤ 22.23.1Affected up to 22.23.1 — see vendor advisory
A flaw in Node.js HTTPS Agent connection reuse can cause PFX object-array key collisions, allowing mutual TLS (mTLS) client identities to be reused across requests configured with different client certificates. This vulnerability affects Node.js **26.x**, **24.x**, and **22.x**.
- ≥ 26.0.0, ≤ 26.5.0Affected up to 26.5.0 — see vendor advisory
- ≥ 24.0.0, ≤ 24.18.0Affected up to 24.18.0 — see vendor advisory
- ≥ 22.0, ≤ 22.23.1Affected up to 22.23.1 — see vendor advisory
A flaw in Node.js Permission Model enforcement allows `trace_events.createTracing().enable()` Writes Trace Logs Outside `--allow-fs-write`. This can lead to confidentiality impact or bypass of the intended security boundary under affected configurations. This vulnerability affec…
- ≥ 26.0.0, ≤ 26.5.0Affected up to 26.5.0 — see vendor advisory
- ≥ 24.0.0, ≤ 24.18.0Affected up to 24.18.0 — see vendor advisory
- ≥ 22.0, ≤ 22.23.1Affected up to 22.23.1 — see vendor advisory
A flaw in Node.js Permission API can cause a local server to be started (via a Unix domain socket), even without the `--allow-net` permission. This vulnerability affects one supported release line: **Node.js 26**.
- 26.3.0This version only
A flaw in Node.js Permission API can cause a file metadata to be modified even on a path that was set as read-only with e.g. `--allow-fs-read`. This vulnerability affects all supported release lines: **Node.js 22**, **Node.js 24**, and **Node.js 26**.
- 26.3.0This version only
- 24.16.0This version only
- 22.22.3This version only
A flaw in Node.js TLS host verification can cause an attacker to bypass certification validation. This vulnerability affects all supported release lines: **Node.js 22**, **Node.js 24**, and **Node.js 26**.
- 26.3.0This version only
- 24.16.0This version only
- 22.22.3This version only
A flaw in Node.js WebCrypto implementation can crash the process if the input of `subtle.encrypt()` is a multiple of 2GiB. This vulnerability affects all supported release lines: **Node.js 22**, **Node.js 24**, and **Node.js 26**.
- 26.3.0This version only
- 24.16.0This version only
- 22.22.3This version only
A flaw in Node.js TLS hostname handling can cause Embedded-nul hostnames can lead to silent authority rebinding due to c-string truncation in resolver bindings. This vulnerability affects all supported release lines: **Node.js 22**, **Node.js 24**, and **Node.js 26**.
- 26.3.0This version only
- 24.16.0This version only
- 22.22.3This version only
A inconsistency in Node.js hostname matching can cause a trust-policy bypass in multi-context mTLS setups. This vulnerability affects all supported release lines: **Node.js 22**, **Node.js 24**, and **Node.js 26**.
- 26.3.0This version only
- 24.16.0This version only
- 22.22.3This version only
A flaw in Node.js HTTP/2 client allows a server to send an unlimited number of ORIGIN frames, which could lead to an Out of Memory error on the client. This vulnerability affects all supported release lines: **Node.js 22**, **Node.js 24**, and **Node.js 26**.
- 26.3.0This version only
- 24.16.0This version only
- 22.22.3This version only
A flaw in Node.js TLS hostname handling can cause Node.js unicode dot separator handling can lead to tls wildcard-depth authentication bypass due to resolver and verifier hostname normalization mismat. This can lead to confidentiality impact or bypass of the intended security bo…
- 26.3.0This version only
- 24.16.0This version only
- 22.22.3This version only
A flaw in Node.js proxy tunnel error handling could expose proxy credentials in `ERR_PROXY_TUNNEL` error messages. When proxy credentials are embedded in the proxy URL, they may be exposed through error handling paths and captured by logs, diagnostics, or other error consumers.…
- 26.3.0This version only
- 24.16.0This version only
- 22.22.3This version only
A flaw in Node.js HTTP Agent can cause a client to accept as valid a response that is send before the client has sent the request. This vulnerability affects all supported release lines: **Node.js 22**, **Node.js 24**, and **Node.js 26**.
- 26.3.0This version only
- 24.16.0This version only
- 22.22.3This version only
A flaw in Node.js HTTP/2 server API can cause servers to keep accepting data even after sending a `GOAWAY` frame. This vulnerability affects two supported release lines: **Node.js 22** and **Node.js 24**.
- ≥ 24.0.0, < 24.17.0Fixed in 24.17.0
- ≥ 22.0, < 22.23.0Fixed in 22.23.0
A flaw in Node.js Permission Model enforcement allows Bypass via `process.report.writeReport()` Path Misvalidation. This can lead to confidentiality impact or bypass of the intended security boundary under affected configurations. This vulnerability affects all supported release…
- ≥ 26.0.0, ≤ 26.3.0Affected up to 26.3.0 — see vendor advisory
- ≥ 24.0.0, ≤ 24.16.0Affected up to 24.16.0 — see vendor advisory
- ≥ 22.0.0, ≤ 22.22.3Affected up to 22.22.3 — see vendor advisory
A flaw in V8's string hashing mechanism causes integer-like strings to be hashed to their numeric value, making hash collisions trivially predictable. By crafting a request that causes many such collisions in V8's internal string table, an attacker can significantly degrade perf…
- ≥ 25.0.0, ≤ 25.8.1Affected up to 25.8.1 — see vendor advisory
- ≥ 24.0.0, ≤ 24.14.0Affected up to 24.14.0 — see vendor advisory
- ≥ 22.0.0, ≤ 22.22.1Affected up to 22.22.1 — see vendor advisory
- ≤ 20.20.1Affected up to 20.20.1 — see vendor advisory
An incomplete fix for CVE-2024-36137 leaves `FileHandle.chmod()` and `FileHandle.chown()` in the promises API without the required permission checks, while their callback-based equivalents (`fs.fchmod()`, `fs.fchown()`) were correctly patched. As a result, code running under `--…
- ≥ 25.0.0, ≤ 25.8.1Affected up to 25.8.1 — see vendor advisory
- ≥ 24.0.0, ≤ 24.14.0Affected up to 24.14.0 — see vendor advisory
- ≥ 22.0.0, ≤ 22.22.1Affected up to 22.22.1 — see vendor advisory
- ≤ 20.20.1Affected up to 20.20.1 — see vendor advisory
A flaw in Node.js Permission Model filesystem enforcement leaves `fs.realpathSync.native()` without the required read permission checks, while all comparable filesystem functions correctly enforce them. As a result, code running under `--permission` with restricted `--allow-fs-r…
- ≥ 25.0.0, ≤ 25.8.1Affected up to 25.8.1 — see vendor advisory
- ≥ 24.0.0, ≤ 24.14.0Affected up to 24.14.0 — see vendor advisory
- ≥ 22.0.0, ≤ 22.22.1Affected up to 22.22.1 — see vendor advisory
- ≤ 20.20.1Affected up to 20.20.1 — see vendor advisory
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…
- ≥ 25.0.0, ≤ 25.8.1Affected up to 25.8.1 — see vendor advisory
- ≥ 24.0.0, ≤ 24.14.0Affected up to 24.14.0 — see vendor advisory
- ≥ 22.0.0, ≤ 22.22.1Affected up to 22.22.1 — see vendor advisory
- ≤ 20.20.1Affected up to 20.20.1 — see vendor advisory
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 possib…
- ≥ 25.0.0, ≤ 25.8.1Affected up to 25.8.1 — see vendor advisory
- ≥ 24.0.0, ≤ 24.14.0Affected up to 24.14.0 — see vendor advisory
- ≥ 22.0.0, ≤ 22.22.1Affected up to 22.22.1 — see vendor advisory
- ≤ 20.20.1Affected up to 20.20.1 — see vendor advisory
A flaw in Node.js Permission Model network enforcement leaves Unix Domain Socket (UDS) server operations without the required permission checks, while all comparable network paths correctly enforce them. As a result, code running under `--permission` without `--allow-net` can cr…
- ≥ 25.0.0, ≤ 25.8.1Affected up to 25.8.1 — see vendor advisory
- < 20.0.0Fixed in 20.0.0
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`, cau…
- ≥ 25.0.0, ≤ 25.8.1Affected up to 25.8.1 — see vendor advisory
- ≥ 24.0.0, ≤ 24.14.0Affected up to 24.14.0 — see vendor advisory
- ≥ 22.0.0, ≤ 22.22.1Affected up to 22.22.1 — see vendor advisory
- ≤ 20.20.1Affected up to 20.20.1 — see vendor advisory
A flaw in Node.js URL processing causes an assertion failure in native code when `url.format()` is called with a malformed internationalized domain name (IDN) containing invalid characters, crashing the Node.js process.
- ≥ 25.0.0, ≤ 25.8.1Affected up to 25.8.1 — see vendor advisory
- ≥ 24.0.0, ≤ 24.14.0Affected up to 24.14.0 — see vendor advisory
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), c…
- ≥ 25.0.0, < 25.3.0Fixed in 25.3.0
- ≥ 24.0.0, < 24.13.0Fixed in 24.13.0
- ≥ 22.0.0, < 22.22.0Fixed in 22.22.0
- ≥ 4.0.0, < 20.20.0Fixed in 20.20.0
A flaw in Node.js's permission model allows Unix Domain Socket (UDS) connections to bypass network restrictions when `--permission` is enabled. Even without `--allow-net`, attacker-controlled inputs (such as URLs or socketPath options) can connect to arbitrary local sockets via…
- ≥ 25.0.0, < 25.3.0Fixed in 25.3.0
We have identified a bug in Node.js error handling where "Maximum call stack size exceeded" errors become uncatchable when `async_hooks.createHook()` is enabled. Instead of reaching `process.on('uncaughtException')`, the process terminates, making the crash unrecoverable. Applic…
- ≥ 25.0.0, < 25.3.0Fixed in 25.3.0
- ≥ 24.0.0, < 24.13.0Fixed in 24.13.0
- ≥ 22.0.0, < 22.22.0Fixed in 22.22.0
- ≥ 20.0.0, < 20.20.0Fixed in 20.20.0
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 affect…
- ≥ 25.0.0, < 25.3.0Fixed in 25.3.0
- ≥ 24.0.0, < 24.13.0Fixed in 24.13.0
- ≥ 22.0.0, < 22.22.0Fixed in 22.22.0
- ≥ 20.0.0, < 20.20.0Fixed in 20.20.0
A memory leak in Node.js’s OpenSSL integration occurs when converting `X.509` certificate fields to UTF-8 without freeing the allocated buffer. When applications call `socket.getPeerCertificate(true)`, each certificate field leaks memory, allowing remote clients to trigger stead…
- ≥ 24.0.0, < 24.12.0Fixed in 24.12.0
A flaw in Node.js's permission model allows a file's access and modification timestamps to be changed via `futimes()` even when the process has only read permissions. Unlike `utimes()`, `futimes()` does not apply the expected write-permission checks, which means file metadata ca…
- ≥ 25.0.0, < 25.3.0Fixed in 25.3.0
- ≥ 24.0.0, < 24.13.0Fixed in 24.13.0
- ≥ 22.0.0, < 22.22.0Fixed in 22.22.0
- ≥ 20.0.0, < 20.20.0Fixed in 20.20.0
A flaw in Node.js’s Permissions model allows attackers to bypass `--allow-fs-read` and `--allow-fs-write` restrictions using crafted relative symlink paths. By chaining directories and symlinks, a script granted access only to the current directory can escape the allowed path an…
- ≥ 25.0.0, < 25.3.0Fixed in 25.3.0
- ≥ 24.0.0, < 24.13.0Fixed in 24.13.0
- ≥ 22.0.0, < 22.22.0Fixed in 22.22.0
- ≥ 20.0.0, < 20.20.0Fixed in 20.20.0
A vulnerability has been identified in Node.js, specifically affecting the handling of drive names in the Windows environment. Certain Node.js functions do not treat drive names as special on Windows. As a result, although Node.js assumes a relative path, it actually refers to t…
- ≥ 23.0, < 23.6.1Fixed in 23.6.1
- ≥ 22.0, < 22.13.1Fixed in 22.13.1
- ≥ 20.0, < 20.18.2Fixed in 20.18.2
- ≥ 18.0, < 18.20.6Fixed in 18.20.6
A command inject vulnerability allows an attacker to perform command injection on Windows applications that indirectly depend on the CreateProcess function when the specific conditions are satisfied.
- ≥ 21.0.0, < 21.7.3Fixed in 21.7.3
- ≥ 19.0.0, < 20.12.2Fixed in 20.12.2
- < 18.20.2Fixed in 18.20.2
A vulnerability in Node.js HTTP servers allows an attacker to send a specially crafted HTTP request with chunked encoding, leading to resource exhaustion and denial of service (DoS). The server reads an unbounded number of bytes from a single connection, exploiting the lack of l…
- ≥ 21.0.0, < 21.6.2Fixed in 21.6.2
- ≥ 20.0.0, < 20.11.1Fixed in 20.11.1
- ≥ 18.0.0, < 18.19.1Fixed in 18.19.1
The permission model protects itself against path traversal attacks by calling path.resolve() on any paths given by the user. If the path is to be treated as a Buffer, the implementation uses Buffer.from() to obtain a Buffer from the result of path.resolve(). By monkey-patching…
- ≥ 21.0.0, < 21.6.2Fixed in 21.6.2
- ≥ 20.0.0, < 20.11.1Fixed in 20.11.1
On Linux, Node.js ignores certain environment variables if those may have been set by an unprivileged user while the process is running with elevated privileges with the only exception of CAP_NET_BIND_SERVICE. Due to a bug in the implementation of this exception, Node.js incorre…
- ≥ 21.0.0, < 21.6.2Fixed in 21.6.2
- ≥ 20.0.0, < 20.11.1Fixed in 20.11.1
- ≥ 18.0.0, < 18.19.1Fixed in 18.19.1
Node.js depends on multiple built-in utility functions to normalize paths provided to node:fs functions, which can be overwitten with user-defined implementations leading to filesystem permission model bypass through path traversal attack. This vulnerability affects all users us…
- ≥ 21.0.0, < 21.6.2Fixed in 21.6.2
- ≥ 20.0.0, < 20.11.1Fixed in 20.11.1
The Node.js Permission Model does not clarify in the documentation that wildcards should be only used as the last character of a file path. For example: ``` --allow-fs-read=/home/node/.ssh/*.pub ``` will ignore `pub` and give access to everything after `.ssh/`. This misleading d…
- ≥ 21.0.0, < 21.6.2Fixed in 21.6.2
- ≥ 20.0.0, < 20.11.1Fixed in 20.11.1
The generateKeys() API function returned from crypto.createDiffieHellman() only generates missing (or outdated) keys, that is, it only generates a private key if none has been set yet, but the function is also needed to compute the corresponding public key after calling setPriva…
- ≥ 20.0.0, < 20.3.1Fixed in 20.3.1
- ≥ 18.0.0, < 18.16.1Fixed in 18.16.1
- ≥ 16.0.0, < 16.20.1Fixed in 16.20.1
When an invalid public key is used to create an x509 certificate using the crypto.X509Certificate() API a non-expect termination occurs making it susceptible to DoS attacks when the attacker could force interruptions of application processing, as the process terminates when acce…
- ≥ 20.0.0, < 20.3.1Fixed in 20.3.1
- ≥ 18.0.0, < 18.16.1Fixed in 18.16.1
- ≥ 16.0.0, < 16.20.1Fixed in 16.20.1
A vulnerability has been identified in the Node.js (.msi version) installation process, specifically affecting Windows users who install Node.js using the .msi installer. This vulnerability emerges during the repair operation, where the "msiexec.exe" process, running under the N…
- ≥ 20.0.0, < 20.3.1Fixed in 20.3.1
- ≥ 18.0.0, < 18.16.1Fixed in 18.16.1
- ≥ 16.0.0, < 16.20.1Fixed in 16.20.1
The use of __proto__ in process.mainModule.__proto__.require() can bypass the policy mechanism and require modules outside of the policy.json definition. This vulnerability affects all users using the experimental policy mechanism in all active release lines: v16, v18 and, v20.…
- ≥ 20.0.0, < 20.3.1Fixed in 20.3.1
- ≥ 18.0.0, < 18.16.1Fixed in 18.16.1
- ≥ 16.0.0, < 16.20.1Fixed in 16.20.1
Various `node:fs` functions allow specifying paths as either strings or `Uint8Array` objects. In Node.js environments, the `Buffer` class extends the `Uint8Array` class. Node.js prevents path traversal through strings (see CVE-2023-30584) and `Buffer` objects (see CVE-2023-32004…
- ≥ 20.0.0, < 20.8.0Fixed in 20.8.0
A previously disclosed vulnerability (CVE-2023-30584) was patched insufficiently in commit 205f1e6. The new path traversal vulnerability arises because the implementation does not protect itself against the application overwriting built-in utility functions with user-defined imp…
- ≥ 20.0.0, < 20.8.1Fixed in 20.8.1
When the Node.js policy feature checks the integrity of a resource against a trusted manifest, the application can intercept the operation and return a forged checksum to the node's policy implementation, thus effectively disabling the integrity check. Impacts: This vulnerabilit…
- ≥ 20.1.0, ≤ 20.8.0Affected up to 20.8.0 — see vendor advisory
- ≥ 18.0.0, ≤ 18.18.1Affected up to 18.18.1 — see vendor advisory
The HTTP/2 protocol allows a denial of service (server resource consumption) because request cancellation can reset many streams quickly, as exploited in the wild in August through October 2023.
- ≥ 20.0.0, < 20.8.1Fixed in 20.8.1
- ≥ 18.0.0, < 18.18.2Fixed in 18.18.2
The use of the deprecated API `process.binding()` can bypass the permission model through path traversal. This vulnerability affects all users using the experimental permission model in Node.js 20.x. Please note that at the time this CVE was issued, the permission model is an ex…
- ≥ 20.0.0, < 20.5.1Fixed in 20.5.1
A vulnerability has been identified in Node.js version 20, affecting users of the experimental permission model when the --allow-fs-read flag is used with a non-* argument. This flaw arises from an inadequate permission model that fails to restrict file stats through the `fs.sta…
- ≥ 20.0.0, < 20.5.1Fixed in 20.5.1
A privilege escalation vulnerability exists in the experimental policy mechanism in all active release lines: 16.x, 18.x and, 20.x. The use of the deprecated API `process.binding()` can bypass the policy mechanism by requiring internal modules and eventually take advantage of `p…
- ≥ 20.0.0, ≤ 20.5.0Affected up to 20.5.0 — see vendor advisory
- ≥ 18.0.0, ≤ 18.17.0Affected up to 18.17.0 — see vendor advisory
- ≥ 16.0.0, ≤ 16.20.1Affected up to 16.20.1 — see vendor advisory
The use of `Module._load()` can bypass the policy mechanism and require modules outside of the policy.json definition for a given module. This vulnerability affects all users using the experimental policy mechanism in all active release lines: 16.x, 18.x and, 20.x. Please note t…
- ≥ 20.0.0, ≤ 20.5.0Affected up to 20.5.0 — see vendor advisory
- ≥ 18.0.0, ≤ 18.17.0Affected up to 18.17.0 — see vendor advisory
- ≥ 16.0.0, ≤ 16.20.1Affected up to 16.20.1 — see vendor advisory