SECURITY.md
This file
Path
.github/SECURITY.md
84 lines · 3.9 KiB · Markdown
Last changed by
Update vulnerability disclosure process (#6820)Nate Prewittbefore adoptiona6cf27a
History of this fileTake it
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485# Vulnerability Disclosure
If you think you have found a potential security vulnerability inrequests, please open a [draft Security Advisory](https://github.com/psf/requests/security/advisories/new)via GitHub. We will coordinate verification and next steps throughthat secure medium.
If English is not your first language, please try to describe theproblem and its impact to the best of your ability. For greater detail,please use your native language and we will try our best to translate itusing online services.
Please also include the code you used to find the problem and theshortest amount of code necessary to reproduce it.
Please do not disclose this to anyone else. We will retrieve a CVEidentifier if necessary and give you full credit under whatever name oralias you provide. We will only request an identifier when we have a fixand can publish it in a release.
We will respect your privacy and will only publicize your involvement ifyou grant us permission.
## Process
This following information discusses the process the requests projectfollows in response to vulnerability disclosures. If you are disclosinga vulnerability, this section of the documentation lets you know how wewill respond to your disclosure.
### Timeline
When you report an issue, one of the project members will respond to youwithin two days *at the outside*. In most cases responses will befaster, usually within 12 hours. This initial response will at the veryleast confirm receipt of the report.
If we were able to rapidly reproduce the issue, the initial responsewill also contain confirmation of the issue. If we are not, we willoften ask for more information about the reproduction scenario.
Our goal is to have a fix for any vulnerability released within twoweeks of the initial disclosure. This may potentially involve shippingan interim release that simply disables function while a more mature fixcan be prepared, but will in the vast majority of cases mean shipping acomplete release as soon as possible.
Throughout the fix process we will keep you up to speed with how the fixis progressing. Once the fix is prepared, we will notify you that webelieve we have a fix. Often we will ask you to confirm the fix resolvesthe problem in your environment, especially if we are not confident ofour reproduction scenario.
At this point, we will prepare for the release. We will obtain a CVEnumber if one is required, providing you with full credit for thediscovery. We will also decide on a planned release date, and let youknow when it is. This release date will *always* be on a weekday.
At this point we will reach out to our major downstream packagers tonotify them of an impending security-related patch so they can makearrangements. In addition, these packagers will be provided with theintended patch ahead of time, to ensure that they are able to promptlyrelease their downstream packages. Currently the list of people weactively contact *ahead of a public release* is:
- Python Maintenance Team, Red Hat (python-maint@redhat.com)- Daniele Tricoli, Debian (@eriol)
We will notify these individuals at least a week ahead of our plannedrelease date to ensure that they have sufficient time to prepare. If youbelieve you should be on this list, please let one of the maintainersknow at one of the email addresses at the top of this article.
On release day, we will push the patch to our public repository, alongwith an updated changelog that describes the issue and credits you. Wewill then issue a PyPI release containing the patch.
At this point, we will publicise the release. This will involve mails tomailing lists, Tweets, and all other communication mechanisms availableto the core team.
We will also explicitly mention which commits contain the fix to make iteasier for other distributors and users to easily patch their ownversions of requests if upgrading is not an option.