gh-104711: Add security warning to the CGIHTTPRequestHandler document (GH-115915)

(cherry picked from commit dac8ff4c40)
This commit is contained in:
AN Long 2024-03-04 19:54:38 +08:00 committed by GitHub
parent d8a56ea439
commit eb0603b855
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -507,6 +507,12 @@ the ``--cgi`` option::
python -m http.server --cgi
.. 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