From b10c49b0450711c198d76da6d23314513755a5eb Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Wed, 4 Feb 2026 12:22:16 +0100 Subject: [PATCH] doc: fix --inspect security warning section --- doc/api/cli.md | 46 ++++++++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 065439a777e5dc..c08de869a7c219 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1684,26 +1684,6 @@ When enabled, the parser will accept the following: All the above will expose your application to request smuggling or poisoning attack. Avoid using this option. - - - - -#### Warning: binding inspector to a public IP:port combination is insecure - -Binding the inspector to a public IP (including `0.0.0.0`) with an open port is -insecure, as it allows external hosts to connect to the inspector and perform -a [remote code execution][] attack. - -If specifying a host, make sure that either: - -* The host is not accessible from public networks. -* A firewall disallows unwanted connections on the port. - -**More specifically, `--inspect=0.0.0.0` is insecure if the port (`9229` by -default) is not firewall-protected.** - -See the [debugging security implications][] section for more information. - ### `--inspect-brk[=[host:]port]` + + + +#### Warning: binding inspector to a public IP:port combination is insecure + +Binding the inspector to a public IP (including `0.0.0.0`) with an open port is +insecure, as it allows external hosts to connect to the inspector and perform +a [remote code execution][] attack. + +If specifying a host, make sure that either: + +* The host is not accessible from public networks. +* A firewall disallows unwanted connections on the port. + +**More specifically, `--inspect=0.0.0.0` is insecure if the port (`9229` by +default) is not firewall-protected.** + +See the [debugging security implications][] section for more information. + ### `-i`, `--interactive`