Improper Encoding or Escaping of Output Affecting std/crypto/tls package, versions <1.24.8>=1.25.0 <1.25.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.44% (36th 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-STDCRYPTOTLS-14548484
  • published6 Jan 2026
  • disclosed29 Oct 2025
  • creditNational Cyber Security Centre Finland

Introduced: 29 Oct 2025

CVE-2025-58189  (opens in a new tab)
CWE-116  (opens in a new tab)

How to fix?

Upgrade std/crypto/tls to version 1.24.8, 1.25.2 or higher.

Overview

std/crypto/tls is a Go standard library package std/crypto/tls

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output.

Go Vulnerability Report:
When Conn.Handshake fails during ALPN negotiation, the error contains attacker-controlled information (the ALPN protocols sent by the client), which is not escaped.

CVSS Base Scores

version 4.0
version 3.1