gopls by default communicates via pipe. However, -port and -listen flags are supported as means of debugging. If -listen is given a value without an explicit host (e.g. :8080), or -port is used, gopls will listen on 0.0.0.0. As a result, users might inadvertently cause gopls to bind 0.0.0.0. This can allow a malicious party on the same network to execute code arbitrarily via gopls.
This is filed as a PUBLIC issue due to the relatively niche setup: we expect that the majority of gopls users are not using these flags. This is CVE-2026-42503.
goplsby default communicates via pipe. However,-portand-listenflags are supported as means of debugging. If-listenis given a value without an explicit host (e.g.:8080), or-portis used,goplswill listen on0.0.0.0. As a result, users might inadvertently causegoplsto bind0.0.0.0. This can allow a malicious party on the same network to execute code arbitrarily viagopls.This is filed as a PUBLIC issue due to the relatively niche setup: we expect that the majority of
goplsusers are not using these flags. This is CVE-2026-42503.