Go Vulnerability Database
GO-2025-4008
ALPN negotiation error contains attacker controlled information in crypto/tls
Details
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 packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | stdlib | All versions before 1.24.8 (fixed in 1.24.8) From 1.25.0 before 1.25.2 (fixed in 1.25.2) |