CVE-2025-47912

Insufficient validation of bracketed IPv6 hostnames in net/url

State
Published
Severity
5.3 Medium
Published
Oct 29, 2025
Updated
Nov 4, 2025
Reserved
May 13, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
net/urlGo standard library
  • before 1.24.8Affected
  • 1.25.0 to before 1.25.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.