What’s Vulnerable › Vulnerabilities

CVE-2025-58189: ALPN negotiation error contains attacker controlled information in crypto/tls

Description

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

Affected products

How to fix

Upgrade to a fixed version: Go 1.24.8, 1.25.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-58189 or the next vulnerability affects your stack