CVE-2026-42503

High

Description

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.

SeverityHigh
CVSS8.8
Exploit probability—
ProductGolang Gopls
PublishedMay 6, 2026
First seenMay 6, 2026
Weakness typeCWE-1327CWE-1327

How to fix

Update
  • golang gopls0.22.0 or later

Affected products

ProductAffected versionsFixed in
golang goplsv < 0.22.00.22.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.