Skip to content

CGIHTTPRequestHandler is deprecated in Python 3.13 #49

Open

Description

@ricea

WebSocketRequestHandler inherits from CGIHTTPRequestHandler, which is deprecated as of Python 3.13. See python/cpython#109096

We should stop depending on it before it is removed completely.

As far as I know, the CGI functionality was never widely used. Removing it will be positive from a security standpoint.

Activity

  1. MikeMcC399 commented on Oct 13, 2026

    @MikeMcC399

    Python 3.15, released on 2026-10-09 has now removed CGIHTTPRequestHandler completely, after it was deprecated in Python 3.13.

    Python 3.15 - what's new lists under Removed:

    • http.server

      Removed the CGIHTTPRequestHandler class and the --cgi flag from the python -m http.server command-line interface. They were deprecated in Python 3.13.

    If this issue could be actioned to support Python 3.15 compatibility, that would be helpful.

  2. MikeMcC399 commented on Oct 13, 2026

    @MikeMcC399

    This is possibly also a good time to update https://github.com/GoogleChromeLabs/pywebsocket3/blob/master/.github/workflows/python-package.yml which is testing against

    strategy:
    matrix:
    os: [ubuntu-latest, macos-latest, windows-latest]
    python-version: ["3.8", "3.10", "3.11"]
    exclude:
    - os: macos-latest
    python-version: "3.8"

    Currently supported versions of Python include 3.11 - 3.15.

    Python 3.8 reached end-of-life on 2024-10-07 quite a while ago
    Python 3.10 reached end-of-life on 2026-10-01 very recently

  3. added a commit that references this issue on Oct 22, 2026
  4. added a commit that references this issue on Oct 27, 2026
  5. MikeMcC399 commented on Nov 3, 2026

    @MikeMcC399

    Hello @ricea

    Is there any chance to work on getting this resolved?

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions