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:46 +08:00 committed by GitHub
parent f068522a3a
commit b6077aaf12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -502,6 +502,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