Vulnerability in URL Parsing of Go Programming Language by Google
CVE-2025-47912
Currently unrated
What is CVE-2025-47912?
The Parse function in the Go programming language permits the inclusion of values other than valid IPv6 addresses within square brackets in a URL's host component. Although RFC 3986 specifies that only IPv6 addresses should be enclosed in brackets, the current implementation allows for IPv4 addresses and hostnames to be incorrectly formatted. This flaw can lead to unexpected behavior during URL parsing, potentially introducing security vulnerabilities in applications utilizing this functionality.
Affected Version(s)
net/url 0 < 1.24.8
net/url 1.25.0 < 1.25.2
