Skip to content

Commit

Permalink
pythongh-104711: Add security warning to the CGIHTTPRequestHandler do…
Browse files Browse the repository at this point in the history
…cument (pythonGH-115915)
  • Loading branch information
aisk authored and diegorusso committed Apr 17, 2024
1 parent b4f992a commit 7f8fe69
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Doc/library/http.server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,12 @@ the ``--cgi`` option::
:mod:`http.server` command line ``--cgi`` support is being removed
because :class:`CGIHTTPRequestHandler` is being removed.

.. warning::

:class:`CGIHTTPRequestHandler` and the ``--cgi`` command line option
are not intended for use by untrusted clients and may be vulnerable
to exploitation. Always use within a secure environment.

.. _http.server-security:

Security Considerations
Expand Down

0 comments on commit 7f8fe69

Please sign in to comment.