Skip to content

urlparse of urllib returns wrong hostname #80519

@sanebow

Description

@sanebow
mannequin
BPO 36338
Nosy @ronaldoussoren, @orsenthil, @tiran, @vadmium, @matrixise, @tirkarthi, @jpic, @iritkatriel
PRs
  • bpo-36338: Reject hostname with [ at position > 0 #14896
  • bpo-36338: urllib.urlparse rejects invalid IPv6 addresses #16780
  • Files
  • test_bug_36338.py: Unittest for this issue.
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2019-03-18.08:06:11.906>
    labels = ['type-security', '3.8', '3.9', '3.10', '3.11', '3.7', 'library']
    title = 'urlparse of urllib returns wrong hostname'
    updated_at = <Date 2021-12-03.00:01:27.917>
    user = 'https://bugs.python.org/sanebow'

    bugs.python.org fields:

    activity = <Date 2021-12-03.00:01:27.917>
    actor = 'vstinner'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2019-03-18.08:06:11.906>
    creator = 'sanebow'
    dependencies = []
    files = ['48215']
    hgrepos = []
    issue_num = 36338
    keywords = ['patch']
    message_count = 14.0
    messages = ['338171', '338172', '338173', '338599', '338960', '338972', '349153', '351511', '351589', '351590', '354634', '354746', '355322', '407558']
    nosy_count = 9.0
    nosy_names = ['ronaldoussoren', 'orsenthil', 'christian.heimes', 'martin.panter', 'matrixise', 'xtreak', 'sanebow', 'jpic', 'iritkatriel']
    pr_nums = ['14896', '16780']
    priority = 'high'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'security'
    url = 'https://bugs.python.org/issue36338'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.7 (EOL)end of life3.8 (EOL)end of life3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-securityA security issue

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions