CVE-2026-42507 Affecting golang-docs package, versions <0:1.26.4-1.el9_8


Severity

Recommended
medium

Based on Rocky Linux security rating.

Threat Intelligence

EPSS
0.37% (29th 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-ROCKY9-GOLANGDOCS-17612319
  • published27 Jun 2026
  • disclosed2 Jun 2026

Introduced: 2 Jun 2026

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

How to fix?

Upgrade Rocky-Linux:9 golang-docs to version 0:1.26.4-1.el9_8 or higher.
This issue was patched in RLSA-2026:29981.

NVD Description

Note: Versions mentioned in the description apply only to the upstream golang-docs package and not the golang-docs package as distributed by Rocky-Linux. See How to fix? for Rocky-Linux:9 relevant fixed versions and status.

When returning errors, functions in the net/textproto package would include its input as part of the error. This might allow an attacker to inject misleading content to errors that are printed or logged.

CVSS Base Scores

version 3.1