Vulnerability in URL Parsing of Go Programming Language by Google
CVE-2025-47912

5.3MEDIUM

Key Information:

Status
Vendor
CVE Published:
29 October 2025

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

References

CVSS V3.1

Score:
5.3
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
None
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Enze Wang, Jingcheng Yang and Zehui Miao of Tsinghua University
.