]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-104711: Add security warning to the CGIHTTPRequestHandler document (GH-115915)
authorAN Long <aisk@users.noreply.github.com>
Mon, 4 Mar 2024 11:54:46 +0000 (19:54 +0800)
committerGitHub <noreply@github.com>
Mon, 4 Mar 2024 11:54:46 +0000 (11:54 +0000)
(cherry picked from commit dac8ff4c401f75e65a5eef1514f2d7987e63bbfe)

Doc/library/http.server.rst

index c42103599d1fd7aa6fd6c87faa73a0eb58088251..89c1756c4354bdbb0b99b2680de983c672ca4ad4 100644 (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