Skip to content

isPublicHttpUrl lets some IPv6 forms of private addresses through (from Opus) #52

Open

Description

@DhruvaKanna07

Found by the Opus review of #38 (2026-11-13). isPublicHttpUrl in page.js refuses ::1, ::, ::ffff:, fc00::/7 and fe80, but these still pass:

  • IPv4-compatible ::/96, e.g. [::127.0.0.1] (::7f00:1)
  • the rest of link-local fe80::/10 (fe90::, fea0::, feb0::) and deprecated site-local fec0::/10
  • NAT64 64:ff9b::/96, which maps to IPv4 on networks that run it
  • 6to4 2002::/16, which embeds an IPv4 address

A fix: match ^:: (covering ::/96), ^fe[89ab], ^fec|^fed|^fee|^fef, ^64:ff9b: and ^2002:. Or better, parse the address with net.BlockList and check the embedded IPv4 for the mapped forms.

Deferred to after the hackathon deadline (3 PM PT). Most of these only matter on unusual network stacks.

Activity

  1. added
    bug
    priority: future
    PR needed
    from: Opus
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR neededbugfrom: Opuspriority: future

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions