You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Being able to handle reports there may be useful in the future. Some repositories already have gotten reports (e.g., memory.python.org). What do people think?
All of these repositories make sense to me, I think the bot should be enabled for all repositories with GHSA under python/. We probably want to enable private vulnerability reporting and create SECURITY.md for more repositories, too.
@python/organization-owners (sorry for the work, I'd do it myself if I could), please install the psrt-ghsa-bot app for the repositories listed above, and enable private vulnerability reporting (GitHub Security Advisories) for them if they aren't already.
I'm worried about the synchronisation, is it alright if I assign you on the PRs?
Currently, I'm planning to add the following SECURITY.md to the above repositories. It is based on CPython's.
# Security Policy
Python Security Response Team (PSRT) members balance security work against many
other responsibilities. Please be thoughtful about the time and attention your
report requires. Repeated failure to respect this will result in future reports
being rejected, or the reporter being banned from the `python` GitHub organization,
regardless of technical merit.
## Reporting a Vulnerability
Submit a vulnerability report using GitHub Security Advisories.
Reports should be a few sentences describing the vulnerability. Ideally include
a proof-of-concept script that reproduces the issue and provides a clear
indication of whether the vulnerability is still present. Reports must be
plain-text only, including attachments. No PDFs, binaries, notebooks, or other
files that cannot be safely reviewed. If your proof-of-concept depends on a
specially constructed binary file, please include a script to construct it
rather than the file itself. Ideally, include a minimal patch with the mitigation
for the report.
Reports that do not contain a potential security vulnerability (such as spam or
requesting compliance or due-diligence work) will be discarded without a reply.
What does everyone think?
We could make it the global SECURITY.md instead by adding a note e.g., "if enabled submit using GHSA other wise email ..." although I worry it may be a little confusing? That way, it would automatically display on GitHub in all repositories under python org without a policy. It won't show up locally for users, so it's not ideal.
Let's leave that for later discussion? I don't think the policy applies to e.g. translations.
It would save many PRs to individual repositories, so let's have a quick discussion before them. While I am leaning towards adding one to each anyway, adding it as the default would be simpler and easier to maintain (one update propagates everywhere automatically). But, it won't technically be a file in the repository, so I'm not convinced. Translations already have the policy (e.g. Polish), all repositories under the python organisation display it by default, unless over-ridden.
I don't think there will be any particular difference. We'll still point to the email, we'll just suggest reporting via GHSAs if possible. Additionally, it has some nice reporting guidelines (both on how to format the actual report and how to behave :'-( ) which apply everywhere. For most repositories, the policy on python.org is of little relevance.
But, IMO, we want PRs. It's good manners to let people know about policy changes on repos they watch/maintain. The discussion needs to be in the affected repo.
I would like to avoid using an org-global repository with SECURITY.md unless it's basically to "catch-all" for projects that are unlikely to be updated. For projects with active contributors we'd want to involve them so there's no surprise about what's happening.
I also agree with not using the org-global file for "active" subprojects, if only because it's not obvious to maintainers/editors that it's the global one (I nearly rewrote the global one for PyManager a while back ;) ), and because for anything active we should have at least a little bit more information in each about what constitutes a vulnerability for that project.
Activity
sethmlarson commentedon Jul 2, 2026
All of these repositories make sense to me, I think the bot should be enabled for all repositories with GHSA under
python/. We probably want to enable private vulnerability reporting and createSECURITY.mdfor more repositories, too.StanFromIreland commentedon Jul 2, 2026
@python/organization-owners (sorry for the work, I'd do it myself if I could), please install the
psrt-ghsa-botapp for the repositories listed above, and enable private vulnerability reporting (GitHub Security Advisories) for them if they aren't already.I'll take care of the
SECURITY.mds.encukou commentedon Jul 3, 2026
Can we do the
SECURITY.mdPRs first, to notify the people watching the repos and give them a chance to comment?StanFromIreland commentedon Jul 3, 2026
In that case can we enable private vulnerability reporting first, then do SECURITY.mds, and finally enable the bot?
encukou commentedon Jul 6, 2026
I was thinking to file
SECURITY.mdPRs first, and do the other two steps at the same time as they're merged.StanFromIreland commentedon Jul 6, 2026
I'm worried about the synchronisation, is it alright if I assign you on the PRs?
Currently, I'm planning to add the following
SECURITY.mdto the above repositories. It is based on CPython's.What does everyone think?
We could make it the global
SECURITY.mdinstead by adding a note e.g., "if enabled submit using GHSA other wise email ..." although I worry it may be a little confusing? That way, it would automatically display on GitHub in all repositories underpythonorg without a policy. It won't show up locally for users, so it's not ideal.encukou commentedon Jul 6, 2026
Definitely.
Let's leave that for later discussion? I don't think the policy applies to e.g. translations.
StanFromIreland commentedon Jul 6, 2026
It would save many PRs to individual repositories, so let's have a quick discussion before them. While I am leaning towards adding one to each anyway, adding it as the default would be simpler and easier to maintain (one update propagates everywhere automatically). But, it won't technically be a file in the repository, so I'm not convinced. Translations already have the policy (e.g. Polish), all repositories under the
pythonorganisation display it by default, unless over-ridden.hugovk commentedon Jul 6, 2026
Would we want the global one to show up in these repos?
StanFromIreland commentedon Jul 6, 2026
I don't understand Hugo, it already does?
hugovk commentedon Jul 6, 2026
I meant if we update the global org policy to include the text in #60 (comment).
StanFromIreland commentedon Jul 6, 2026
I don't think there will be any particular difference. We'll still point to the email, we'll just suggest reporting via GHSAs if possible. Additionally, it has some nice reporting guidelines (both on how to format the actual report and how to behave :'-( ) which apply everywhere. For most repositories, the policy on python.org is of little relevance.
encukou commentedon Jul 8, 2026
But, IMO, we want PRs. It's good manners to let people know about policy changes on repos they watch/maintain. The discussion needs to be in the affected repo.
StanFromIreland commentedon Jul 8, 2026
@encukou, it seems the
pymanagerrepository already has them enabled, can we please install the bot there? CC @zoobasethmlarson commentedon Jul 8, 2026
I would like to avoid using an org-global repository with
SECURITY.mdunless it's basically to "catch-all" for projects that are unlikely to be updated. For projects with active contributors we'd want to involve them so there's no surprise about what's happening.zooba commentedon Jul 9, 2026
I also agree with not using the org-global file for "active" subprojects, if only because it's not obvious to maintainers/editors that it's the global one (I nearly rewrote the global one for PyManager a while back ;) ), and because for anything active we should have at least a little bit more information in each about what constitutes a vulnerability for that project.
StanFromIreland commentedon Jul 9, 2026
JFTR, I did also open a little PR against our
.github, to add the respect and ban notice to the default policy: python/.github#16encukou commentedon Jul 10, 2026
Also needs theSECURITY.md. I'll get to it after EuroPython.Sorry, somehow I missed it, my bad!
pymanageris set up now.StanFromIreland commentedon Aug 2, 2026
All of the repositories have been set up, checking the most recent run which includes:
Many thanks to Petr for doing all the work!
encukou commentedon Aug 5, 2026
Thanks to Stan; I'm just the button-pusher :)