Skip to content

net/url: insufficient validation of bracketed IPv6 hostnames (CVE-2025-47912) #75678

@neild

Description

@neild

The Parse function permitted 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.

Thanks to Enze Wang, Jingcheng Yang and Zehui Miao of Tsinghua University for reporting this issue.

This is CVE-2025-47912 and Go issue https://go.dev/issue/75678.


This is a PRIVATE issue for CVE-2025-47912, tracked in http://b/436581568 and fixed by https://go-internal-review.git.corp.google.com/c/go/+/2680.

/cc @golang/security and @golang/release

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.Securityrelease-blocker

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions