]> 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:38 +0000 (19:54 +0800)
committerGitHub <noreply@github.com>
Mon, 4 Mar 2024 11:54:38 +0000 (11:54 +0000)
(cherry picked from commit dac8ff4c401f75e65a5eef1514f2d7987e63bbfe)

Doc/library/http.server.rst

index eb3a6a87a11e58d42b7b067070a4eb681b91e47c..e6d3bb45ef017eeb34fde874928e93fc351d6897 100644 (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