CVE-2026-42503 Affecting gopls package, versions <2:0.22.0+ds-1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.21% (12th 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-DEBIAN14-GOPLS-17099862
  • published30 May 2026
  • disclosed6 May 2026

Introduced: 6 May 2026

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

How to fix?

Upgrade Debian:14 gopls to version 2:0.22.0+ds-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream gopls package and not the gopls package as distributed by Debian. See How to fix? for Debian:14 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1