From: AN Long Date: Fri, 1 Mar 2024 17:25:14 +0000 (+0800) Subject: gh-104711: Add security warning to the CGIHTTPRequestHandler document (GH-115915) X-Git-Tag: v3.13.0a5~150 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dac8ff4c401f75e65a5eef1514f2d7987e63bbfe;p=thirdparty%2FPython%2Fcpython.git gh-104711: Add security warning to the CGIHTTPRequestHandler document (GH-115915) --- diff --git a/Doc/library/http.server.rst b/Doc/library/http.server.rst index bc59d3d17912..886e359bd8cd 100644 --- a/Doc/library/http.server.rst +++ b/Doc/library/http.server.rst @@ -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