Skip to content

netx: block the IPv6 unspecified address as a local address - #8481

Merged
unknwon merged 2 commits into
mainfrom
ghsa-799r-mx22-r63q
Nov 11, 2026
Merged

unknwon merged 2 commits into
mainfrom
ghsa-799r-mx22-r63q

Conversation

@unknwon

@unknwon unknwon commented Nov 11, 2026

Copy link
Copy Markdown
Member

Describe the pull request

Treat the IPv6 unspecified address as a local network address so it is subject to the same restriction as other local addresses for webhooks, repository migrations, and mirrors.

Link to the issue: GHSA-799r-mx22-r63q

Checklist

  • I agree to follow the Code of Conduct by submitting this pull request.
  • I have read and acknowledge the Contributing guide.
  • I have added test cases to cover the new code or have provided the test plan. (if applicable)
  • I have added an entry to CHANGELOG. (if applicable)

Test plan

  • go test ./internal/netx/, the new cases fail without the fix.
  • With an HTTP listener on [::1], before the fix a webhook to http://[::]:<port>/ is accepted and its delivery records the listener's response, and a migration from http://[::]:<port>/x.git reaches the listener.
  • After the fix, creating the webhook and migrating are rejected as local addresses, a delivery to such a URL is blocked, and the listener receives no requests.

AI usage

Claude Code was used to verify the report, write the fix, and run the end-to-end checks above, all reviewed by the maintainer.

@unknwon unknwon added this to the 0.14.4 milestone Nov 11, 2026
@unknwon
unknwon merged commit a4a1b1f into main Nov 11, 2026
11 checks passed
@unknwon
unknwon deleted the ghsa-799r-mx22-r63q branch November 11, 2026 02:49
unknwon added a commit that referenced this pull request Nov 11, 2026
@unknwon unknwon mentioned this pull request Nov 11, 2026
4 of 6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant