prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Update urllib3: HTTP Header Injection vuln
  **Describe the bug**
  urllib3 needs to be updated to at least 1.25.9 to fix a high severity HTTP Header Injection vulnerability. Snyk info page [here](https://snyk.io/vuln/SNYK-PYTHON-URLLIB3-1014645).
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `setup.py`
  Content:
  ```
  1 #!/usr/bin/env python
  2 import logging
  3 import os
  4 from importlib import util
  5 from os import path
  6 
  7 import setuptools
  8 from setuptools import setup
  9 
  10 # read the contents of your README file
  11 this_directory = path.abspath(path.dirname(__file__))
  12 with open(path.join(this_directory, "README.md"), encoding="utf-8") as f:
  13     long_description = f.read()
  14 
  15 logger = logging.getLogger(__name__)
  16 spec = util.spec_from_file_location(
  17     "checkov.version", os.path.join("checkov", "version.py")
  18 )
  19 # noinspection PyUnresolvedReferences
  20 mod = util.module_from_spec(spec)
  21 spec.loader.exec_module(mod)  # type: ignore
  22 version = mod.version  # type: ignore
  23 
  24 setup(
  25     extras_require={
  26         "dev": [
  27             "alabaster==0.7.12",
  28             "attrs==19.3.0",
  29             "babel==2.7.0",
  30             "certifi==2019.11.28",
  31             "chardet==3.0.4",
  32             "coverage==4.5.4",
  33             "coverage-badge==1.0.1",
  34             "docopt==0.6.2",
  35             "docutils==0.15.2",
  36             "idna==2.8",
  37             "imagesize==1.1.0",
  38             "importlib-metadata==1.1.0; python_version < '3.8'",
  39             "jinja2==2.10.3",
  40             "lark-parser==0.7.8",
  41             "markupsafe==1.1.1",
  42             "more-itertools==8.0.0",
  43             "packaging==19.2",
  44             "pluggy==0.13.1",
  45             "py==1.8.0",
  46             "pygments==2.5.2",
  47             "pyparsing==2.4.5",
  48             "pytest==5.3.1",
  49             "bc-python-hcl2>=0.3.10",
  50             "pytz==2019.3",
  51             "pyyaml==5.3.1",
  52             "requests==2.22.0",
  53             "six==1.15.0",
  54             "snowballstemmer==2.0.0",
  55             "sphinx==2.2.1",
  56             "sphinxcontrib-applehelp==1.0.1",
  57             "sphinxcontrib-devhelp==1.0.1",
  58             "sphinxcontrib-htmlhelp==1.0.2",
  59             "sphinxcontrib-jsmath==1.0.1",
  60             "sphinxcontrib-qthelp==1.0.2",
  61             "sphinxcontrib-serializinghtml==1.1.3",
  62             "urllib3==1.25.7",
  63             "wcwidth==0.1.7",
  64             "zipp==0.6.0",
  65             "GitPython==3.1.7",
  66             "gitdb==4.0.5"
  67         ]
  68     },
  69     install_requires=[
  70         "boto3==1.12.43",
  71         "chardet==3.0.4",
  72         "colorama==0.4.3",
  73         "docopt==0.6.2",
  74         "idna==2.8",
  75         "jmespath==0.10.0",
  76         "junit-xml==1.8",
  77         "lark-parser==0.7.8",
  78         "bc-python-hcl2>=0.3.11",
  79         "pyyaml==5.3.1",
  80         "requests==2.22.0",
  81         "six==1.15.0",
  82         "tabulate==0.8.6",
  83         "termcolor==1.1.0",
  84         "urllib3==1.25.7",
  85         "dpath==1.5.0",
  86         "GitPython==3.1.7",
  87         "gitdb==4.0.5"
  88     ],
  89     license="Apache License 2.0",
  90     name="checkov",
  91     version=version,
  92     description="Infrastructure as code static analysis",
  93     author="bridgecrew",
  94     author_email="meet@bridgecrew.io",
  95     url="https://github.com/bridgecrewio/checkov",
  96     packages=setuptools.find_packages(exclude=["tests*","integration_tests*"]),
  97     scripts=["bin/checkov","bin/checkov.cmd"],
  98     long_description=long_description,
  99     long_description_content_type="text/markdown",
  100     classifiers=[
  101         'Environment :: Console',
  102         'Intended Audience :: Developers',
  103         'Intended Audience :: System Administrators',
  104         'Programming Language :: Python :: 3.7',
  105         'Topic :: Security',
  106         'Topic :: Software Development :: Build Tools'
  107     ]
  108 )
  109
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -59,7 +59,7 @@
               "sphinxcontrib-jsmath==1.0.1",
               "sphinxcontrib-qthelp==1.0.2",
               "sphinxcontrib-serializinghtml==1.1.3",
  -            "urllib3==1.25.7",
  +            "urllib3==1.25.10",
               "wcwidth==0.1.7",
               "zipp==0.6.0",
               "GitPython==3.1.7",
  @@ -81,7 +81,7 @@
           "six==1.15.0",
           "tabulate==0.8.6",
           "termcolor==1.1.0",
  -        "urllib3==1.25.7",
  +        "urllib3==1.25.10",
           "dpath==1.5.0",
           "GitPython==3.1.7",
           "gitdb==4.0.5"
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -59,7 +59,7 @@\n             \"sphinxcontrib-jsmath==1.0.1\",\n             \"sphinxcontrib-qthelp==1.0.2\",\n             \"sphinxcontrib-serializinghtml==1.1.3\",\n-            \"urllib3==1.25.7\",\n+            \"urllib3==1.25.10\",\n             \"wcwidth==0.1.7\",\n             \"zipp==0.6.0\",\n             \"GitPython==3.1.7\",\n@@ -81,7 +81,7 @@\n         \"six==1.15.0\",\n         \"tabulate==0.8.6\",\n         \"termcolor==1.1.0\",\n-        \"urllib3==1.25.7\",\n+        \"urllib3==1.25.10\",\n         \"dpath==1.5.0\",\n         \"GitPython==3.1.7\",\n         \"gitdb==4.0.5\"\n", "issue": "Update urllib3: HTTP Header Injection vuln\n**Describe the bug**\r\nurllib3 needs to be updated to at least 1.25.9 to fix a high severity HTTP Header Injection vulnerability. Snyk info page [here](https://snyk.io/vuln/SNYK-PYTHON-URLLIB3-1014645).\n", "before_files": [{"content": "#!/usr/bin/env python\nimport logging\nimport os\nfrom importlib import util\nfrom os import path\n\nimport setuptools\nfrom setuptools import setup\n\n# read the contents of your README file\nthis_directory = path.abspath(path.dirname(__file__))\nwith open(path.join(this_directory, \"README.md\"), encoding=\"utf-8\") as f:\n    long_description = f.read()\n\nlogger = logging.getLogger(__name__)\nspec = util.spec_from_file_location(\n    \"checkov.version\", os.path.join(\"checkov\", \"version.py\")\n)\n# noinspection PyUnresolvedReferences\nmod = util.module_from_spec(spec)\nspec.loader.exec_module(mod)  # type: ignore\nversion = mod.version  # type: ignore\n\nsetup(\n    extras_require={\n        \"dev\": [\n            \"alabaster==0.7.12\",\n            \"attrs==19.3.0\",\n            \"babel==2.7.0\",\n            \"certifi==2019.11.28\",\n            \"chardet==3.0.4\",\n            \"coverage==4.5.4\",\n            \"coverage-badge==1.0.1\",\n            \"docopt==0.6.2\",\n            \"docutils==0.15.2\",\n            \"idna==2.8\",\n            \"imagesize==1.1.0\",\n            \"importlib-metadata==1.1.0; python_version < '3.8'\",\n            \"jinja2==2.10.3\",\n            \"lark-parser==0.7.8\",\n            \"markupsafe==1.1.1\",\n            \"more-itertools==8.0.0\",\n            \"packaging==19.2\",\n            \"pluggy==0.13.1\",\n            \"py==1.8.0\",\n            \"pygments==2.5.2\",\n            \"pyparsing==2.4.5\",\n            \"pytest==5.3.1\",\n            \"bc-python-hcl2>=0.3.10\",\n            \"pytz==2019.3\",\n            \"pyyaml==5.3.1\",\n            \"requests==2.22.0\",\n            \"six==1.15.0\",\n            \"snowballstemmer==2.0.0\",\n            \"sphinx==2.2.1\",\n            \"sphinxcontrib-applehelp==1.0.1\",\n            \"sphinxcontrib-devhelp==1.0.1\",\n            \"sphinxcontrib-htmlhelp==1.0.2\",\n            \"sphinxcontrib-jsmath==1.0.1\",\n            \"sphinxcontrib-qthelp==1.0.2\",\n            \"sphinxcontrib-serializinghtml==1.1.3\",\n            \"urllib3==1.25.7\",\n            \"wcwidth==0.1.7\",\n            \"zipp==0.6.0\",\n            \"GitPython==3.1.7\",\n            \"gitdb==4.0.5\"\n        ]\n    },\n    install_requires=[\n        \"boto3==1.12.43\",\n        \"chardet==3.0.4\",\n        \"colorama==0.4.3\",\n        \"docopt==0.6.2\",\n        \"idna==2.8\",\n        \"jmespath==0.10.0\",\n        \"junit-xml==1.8\",\n        \"lark-parser==0.7.8\",\n        \"bc-python-hcl2>=0.3.11\",\n        \"pyyaml==5.3.1\",\n        \"requests==2.22.0\",\n        \"six==1.15.0\",\n        \"tabulate==0.8.6\",\n        \"termcolor==1.1.0\",\n        \"urllib3==1.25.7\",\n        \"dpath==1.5.0\",\n        \"GitPython==3.1.7\",\n        \"gitdb==4.0.5\"\n    ],\n    license=\"Apache License 2.0\",\n    name=\"checkov\",\n    version=version,\n    description=\"Infrastructure as code static analysis\",\n    author=\"bridgecrew\",\n    author_email=\"meet@bridgecrew.io\",\n    url=\"https://github.com/bridgecrewio/checkov\",\n    packages=setuptools.find_packages(exclude=[\"tests*\",\"integration_tests*\"]),\n    scripts=[\"bin/checkov\",\"bin/checkov.cmd\"],\n    long_description=long_description,\n    long_description_content_type=\"text/markdown\",\n    classifiers=[\n        'Environment :: Console',\n        'Intended Audience :: Developers',\n        'Intended Audience :: System Administrators',\n        'Programming Language :: Python :: 3.7',\n        'Topic :: Security',\n        'Topic :: Software Development :: Build Tools'\n    ]\n)\n", "path": "setup.py"}], "after_files": [{"content": "#!/usr/bin/env python\nimport logging\nimport os\nfrom importlib import util\nfrom os import path\n\nimport setuptools\nfrom setuptools import setup\n\n# read the contents of your README file\nthis_directory = path.abspath(path.dirname(__file__))\nwith open(path.join(this_directory, \"README.md\"), encoding=\"utf-8\") as f:\n    long_description = f.read()\n\nlogger = logging.getLogger(__name__)\nspec = util.spec_from_file_location(\n    \"checkov.version\", os.path.join(\"checkov\", \"version.py\")\n)\n# noinspection PyUnresolvedReferences\nmod = util.module_from_spec(spec)\nspec.loader.exec_module(mod)  # type: ignore\nversion = mod.version  # type: ignore\n\nsetup(\n    extras_require={\n        \"dev\": [\n            \"alabaster==0.7.12\",\n            \"attrs==19.3.0\",\n            \"babel==2.7.0\",\n            \"certifi==2019.11.28\",\n            \"chardet==3.0.4\",\n            \"coverage==4.5.4\",\n            \"coverage-badge==1.0.1\",\n            \"docopt==0.6.2\",\n            \"docutils==0.15.2\",\n            \"idna==2.8\",\n            \"imagesize==1.1.0\",\n            \"importlib-metadata==1.1.0; python_version < '3.8'\",\n            \"jinja2==2.10.3\",\n            \"lark-parser==0.7.8\",\n            \"markupsafe==1.1.1\",\n            \"more-itertools==8.0.0\",\n            \"packaging==19.2\",\n            \"pluggy==0.13.1\",\n            \"py==1.8.0\",\n            \"pygments==2.5.2\",\n            \"pyparsing==2.4.5\",\n            \"pytest==5.3.1\",\n            \"bc-python-hcl2>=0.3.10\",\n            \"pytz==2019.3\",\n            \"pyyaml==5.3.1\",\n            \"requests==2.22.0\",\n            \"six==1.15.0\",\n            \"snowballstemmer==2.0.0\",\n            \"sphinx==2.2.1\",\n            \"sphinxcontrib-applehelp==1.0.1\",\n            \"sphinxcontrib-devhelp==1.0.1\",\n            \"sphinxcontrib-htmlhelp==1.0.2\",\n            \"sphinxcontrib-jsmath==1.0.1\",\n            \"sphinxcontrib-qthelp==1.0.2\",\n            \"sphinxcontrib-serializinghtml==1.1.3\",\n            \"urllib3==1.25.10\",\n            \"wcwidth==0.1.7\",\n            \"zipp==0.6.0\",\n            \"GitPython==3.1.7\",\n            \"gitdb==4.0.5\"\n        ]\n    },\n    install_requires=[\n        \"boto3==1.12.43\",\n        \"chardet==3.0.4\",\n        \"colorama==0.4.3\",\n        \"docopt==0.6.2\",\n        \"idna==2.8\",\n        \"jmespath==0.10.0\",\n        \"junit-xml==1.8\",\n        \"lark-parser==0.7.8\",\n        \"bc-python-hcl2>=0.3.11\",\n        \"pyyaml==5.3.1\",\n        \"requests==2.22.0\",\n        \"six==1.15.0\",\n        \"tabulate==0.8.6\",\n        \"termcolor==1.1.0\",\n        \"urllib3==1.25.10\",\n        \"dpath==1.5.0\",\n        \"GitPython==3.1.7\",\n        \"gitdb==4.0.5\"\n    ],\n    license=\"Apache License 2.0\",\n    name=\"checkov\",\n    version=version,\n    description=\"Infrastructure as code static analysis\",\n    author=\"bridgecrew\",\n    author_email=\"meet@bridgecrew.io\",\n    url=\"https://github.com/bridgecrewio/checkov\",\n    packages=setuptools.find_packages(exclude=[\"tests*\",\"integration_tests*\"]),\n    scripts=[\"bin/checkov\",\"bin/checkov.cmd\"],\n    long_description=long_description,\n    long_description_content_type=\"text/markdown\",\n    classifiers=[\n        'Environment :: Console',\n        'Intended Audience :: Developers',\n        'Intended Audience :: System Administrators',\n        'Programming Language :: Python :: 3.7',\n        'Topic :: Security',\n        'Topic :: Software Development :: Build Tools'\n    ]\n)\n", "path": "setup.py"}]}