Advisory

GO-2025-4010

Also known as: BIT-golang-2025-47912, CVE-2025-47912

Summary

Insufficient validation of bracketed IPv6 hostnames in net/url

Details

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.

Severity

Not rated by the source.

Dates

Published
2025-10-29 21:49 UTC
Modified
2026-05-15 10:59 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.24.8, introduced 1.25.0, fixed 1.25.2 (semver)

Fixed versions

1.24.8, 1.25.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences