Vulnerability Report: GO-2025-4010
- CVE-2025-47912, CVE-2025-47912
- Affects: net/url
- Published: Oct 29, 2025
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.
Affected Packages
-
PathVersionsSymbols
-
before go1.24.8, from go1.25.0 before go1.25.2
5 affected symbols
Aliases
References
- https://go.dev/issue/75678
- https://go.dev/cl/709857
- https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI
- https://vuln.go.dev/ID/GO-2025-4010.json
Credits
- Enze Wang, Jingcheng Yang and Zehui Miao of Tsinghua University
Feedback
See anything missing or incorrect?
Suggest an edit to this report.