ZeroHour

CVE-2026-75021

moderate

Misbound Node.js Inspector in fastify-cli enables remote code execution

CVSS 3.1
8.1 high
EPSS
<1%p35
Published
()
Modified
AI analysis

fastify-cli, the command-line launcher for the Fastify framework, starts the Node.js Inspector when a debug flag is used, but on affected versions it ignores the bind address the user explicitly supplies and binds the debugger to a broadly reachable address instead of loopback only. The flaw is triggered whenever an application is started through fastify-cli with the Inspector/debug option on versions 1.5.0 up to 8.0.1 and the debugger port is reachable from another host, such as on a shared network, a container with the debug port published, or a cloud development machine. Because the Node.js Inspector protocol allows arbitrary code evaluation, an attacker who can reach the exposed debugging interface gains remote code execution with the privileges of the Node.js process on that machine. Developers and teams running fastify-cli 1.5.0 up to 8.0.1 with debug flags are affected, with the greatest risk on hosts where the debugger port is not firewalled. No public proof-of-concept is known, the issue is not listed in CISA KEV, and EPSS estimates roughly a 0.4% chance of exploitation within 30 days.

What to do: Upgrade to fastify-cli 8.0.1, which honors the configured Inspector bind address. As an interim mitigation, avoid running fastify-cli with debug flags on network-reachable hosts, or firewall the Node Inspector port (default 9229) so it is not listening on a non-loopback interface. Check listeners on the Inspector port in shared, containerized, and remote development environments before upgrading.

Affected
fastify-cli>= 1.5.0 and < 8.0.1 (fixed in 8.0.1)
Estimated exposure
moderate≈tens of thousands of developer installs (npm weekly downloads in the tens of thousands); likely only ~1k–10k with a network-reachable Inspector port at any… — Estimate based on fastify-cli's npm distribution footprint on the order of tens of thousands of weekly downloads, combined with the deployment pattern that exposure additionally requires running with a debug flag and an unfirewalled…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

fastify-cli starts the Node.js Inspector when a debug flag is used, but it ignores the explicit bind address the user supplies and binds the Inspector to a broadly reachable address instead of the intended loopback. As a result the debugging interface can be exposed beyond the local machine, and because the Inspector protocol allows arbitrary code evaluation, a remote party that reaches it can achieve remote code execution on the developer's machine. This affects fastify-cli from 1.5.0 up to 8.0.1. Users should upgrade to fastify-cli 8.0.1, which honors the configured Inspector bind address.

Weakness
CWE-1327
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.