| 1 |
# Vulnerability Disclosure |
| 2 |
|
| 3 |
If you think you have found a potential security vulnerability in |
| 4 |
requests, please open a [draft Security Advisory](https://github.com/psf/requests/security/advisories/new) |
| 5 |
via GitHub. We will coordinate verification and next steps through |
| 6 |
that secure medium. |
| 7 |
|
| 8 |
If English is not your first language, please try to describe the |
| 9 |
problem and its impact to the best of your ability. For greater detail, |
| 10 |
please use your native language and we will try our best to translate it |
| 11 |
using online services. |
| 12 |
|
| 13 |
Please also include the code you used to find the problem and the |
| 14 |
shortest amount of code necessary to reproduce it. |
| 15 |
|
| 16 |
Please do not disclose this to anyone else. We will retrieve a CVE |
| 17 |
identifier if necessary and give you full credit under whatever name or |
| 18 |
alias you provide. We will only request an identifier when we have a fix |
| 19 |
and can publish it in a release. |
| 20 |
|
| 21 |
We will respect your privacy and will only publicize your involvement if |
| 22 |
you grant us permission. |
| 23 |
|
| 24 |
## Process |
| 25 |
|
| 26 |
This following information discusses the process the requests project |
| 27 |
follows in response to vulnerability disclosures. If you are disclosing |
| 28 |
a vulnerability, this section of the documentation lets you know how we |
| 29 |
will respond to your disclosure. |
| 30 |
|
| 31 |
### Timeline |
| 32 |
|
| 33 |
When you report an issue, one of the project members will respond to you |
| 34 |
within two days *at the outside*. In most cases responses will be |
| 35 |
faster, usually within 12 hours. This initial response will at the very |
| 36 |
least confirm receipt of the report. |
| 37 |
|
| 38 |
If we were able to rapidly reproduce the issue, the initial response |
| 39 |
will also contain confirmation of the issue. If we are not, we will |
| 40 |
often ask for more information about the reproduction scenario. |
| 41 |
|
| 42 |
Our goal is to have a fix for any vulnerability released within two |
| 43 |
weeks of the initial disclosure. This may potentially involve shipping |
| 44 |
an interim release that simply disables function while a more mature fix |
| 45 |
can be prepared, but will in the vast majority of cases mean shipping a |
| 46 |
complete release as soon as possible. |
| 47 |
|
| 48 |
Throughout the fix process we will keep you up to speed with how the fix |
| 49 |
is progressing. Once the fix is prepared, we will notify you that we |
| 50 |
believe we have a fix. Often we will ask you to confirm the fix resolves |
| 51 |
the problem in your environment, especially if we are not confident of |
| 52 |
our reproduction scenario. |
| 53 |
|
| 54 |
At this point, we will prepare for the release. We will obtain a CVE |
| 55 |
number if one is required, providing you with full credit for the |
| 56 |
discovery. We will also decide on a planned release date, and let you |
| 57 |
know when it is. This release date will *always* be on a weekday. |
| 58 |
|
| 59 |
At this point we will reach out to our major downstream packagers to |
| 60 |
notify them of an impending security-related patch so they can make |
| 61 |
arrangements. In addition, these packagers will be provided with the |
| 62 |
intended patch ahead of time, to ensure that they are able to promptly |
| 63 |
release their downstream packages. Currently the list of people we |
| 64 |
actively contact *ahead of a public release* is: |
| 65 |
|
| 66 |
- Python Maintenance Team, Red Hat ([email protected]) |
| 67 |
- Daniele Tricoli, Debian (@eriol) |
| 68 |
|
| 69 |
We will notify these individuals at least a week ahead of our planned |
| 70 |
release date to ensure that they have sufficient time to prepare. If you |
| 71 |
believe you should be on this list, please let one of the maintainers |
| 72 |
know at one of the email addresses at the top of this article. |
| 73 |
|
| 74 |
On release day, we will push the patch to our public repository, along |
| 75 |
with an updated changelog that describes the issue and credits you. We |
| 76 |
will then issue a PyPI release containing the patch. |
| 77 |
|
| 78 |
At this point, we will publicise the release. This will involve mails to |
| 79 |
mailing lists, Tweets, and all other communication mechanisms available |
| 80 |
to the core team. |
| 81 |
|
| 82 |
We will also explicitly mention which commits contain the fix to make it |
| 83 |
easier for other distributors and users to easily patch their own |
| 84 |
versions of requests if upgrading is not an option. |