CVE-2025-47912
net/url: Insufficient validation of bracketed IPv6 hostnames in net/url
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · October 30, 2025
Updated · October 27, 2026
Description
The Parse function permits values other than IPv6 addresses to be included in square brackets within the host component of a URL. RFC 3986 permits IPv6 addresses to be included within the host component, enclosed within square brackets. For example: "http://[::1]/". IPv4 addresses and hostnames must not appear within square brackets. Parse did not enforce this requirement.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CWE-1286 · Improper Validation of Syntactic Correctness of Input