Binding to an Unrestricted IP Address Affecting golang.org/x/tools/gopls/internal/lsprpc package, versions <0.22.0-pre.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.22% (13th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GOLANGORGXTOOLSGOPLSINTERNALLSPRPC-17223218
  • published7 Jun 2026
  • disclosed6 May 2026
  • creditUnknown

Introduced: 6 May 2026

CVE-2026-42503  (opens in a new tab)
CWE-1327  (opens in a new tab)

How to fix?

Upgrade golang.org/x/tools/gopls/internal/lsprpc to version 0.22.0-pre.2 or higher.

Overview

Affected versions of this package are vulnerable to Binding to an Unrestricted IP Address which defaults to 0.0.0.0 when the -port argument is used or the -listen argument is used without specifying a host. An attacker can execute arbitrary code remotely by connecting to the exposed service over the network.

To be vulnerable to this issue, the application has to be using one of the networking flags above, which are designated for debugging, and wouldn't be in use in a usual pipeline-based deployment.

CVSS Base Scores

version 4.0
version 3.1