-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unclear what security policy would apply to gitdb and smmap vulnerabilities #116
Unclear what security policy would apply to gitdb and smmap vulnerabilities #116
Comments
Thanks for bringing this up! I also thought of it from the angle of reach - the GitPython repository will reach more people than the sibling-repositories ever will. Hence I think Does that make sense? If so, I think you'd be the best choice in adjusting/adding these files. I am also happy to do that otherwise. |
Yes. I'll open PRs to make the changes in all three repositories. |
Along with gitpython-developers/smmap#59 and a forthcoming related PR in GitPython, this will fix gitpython-developers#116.
This expands `SECURITY.md` to affirm the claims in the new `SECURITY.md` files in gitdb and smmap that vulnerabilities found in them can be reported in the GitPython repository with the same link as one would use to report a GitPython vulnerability, as well as to note how the distinction between affected package can be specified when it is known at the time a vulnerability is reported. Along with gitpython-developers/smmap#59 and gitpython-developers/gitdb#117, this fixes gitpython-developers/gitdb#116.
This expands `SECURITY.md` to affirm the claims in the new `SECURITY.md` files in gitdb and smmap that vulnerabilities found in them can be reported in the GitPython repository with the same link as one would use to report a GitPython vulnerability, as well as to note how the distinction between affected package can be specified when it is known at the time a vulnerability is reported. Along with gitpython-developers/smmap#59 and gitpython-developers/gitdb#117, this fixes gitpython-developers/gitdb#116.
This expands `SECURITY.md` to affirm the claims in the new `SECURITY.md` files in gitdb and smmap that vulnerabilities found in them can be reported in the GitPython repository with the same link as one would use to report a GitPython vulnerability, as well as to note how the distinction between affected package can be specified when it is known at the time a vulnerability is reported. Along with gitpython-developers/smmap#59 and gitpython-developers/gitdb#117, this fixes gitpython-developers/gitdb#116.
At least currently, gitdb and smmap are developed and managed in separate repositories from GitPython. While GitPython has a
SECURITY.md
file indicating the requested methods of reporting security vulnerabilities, as well as having private vulnerability reporting enabled (to allow people to report vulnerabilities by creating draft advisories), neither gitdb nor smmap has either of these things. In addition, the GitPythonSECURITY.md
does not say how to report gitdb and smmap vulnerabilities. It is consequently not clear how any vulnerabilities found in code of thegitdb
andsmmap
packages should be reported.Some code in gitdb, and especially in smmap, may be less important today than in the past, with regard to security, since the in-memory object database is no longer widely recommended and no longer extensively used, though it does seem to remain in some use. However, some code of gitdb and smmap continue to be used as helper types in GitPython, even when only using GitPython to perform operations via
git
subprocesses. It seems someindex
-related operations may also be making greater use of code from gitdb than was expected.Therefore, I recommend that
SECURITY.md
files be created here in the gitdb repository as well as in the smmap repository, so it is clear what the recommended way is to report any security vulnerabilities that may be found in them.But I'm not sure what that recommendation should be. Assuming GitHub's private vulnerability reporting feature is to be a recommended approach, the recommendation (and whether private vulnerability reporting would be enabled in the gitdb and smmap repositories) would differ depending on what repository should hold and publish the advisory. Ordinarily this would be the same repository that has the code the advisory applies to, i.e. the gitdb or smmap repository.
But as discussed in gitpython-developers/smmap#53, there is interest in eventually merging the gitdb and smmap repositories into the GitPython repository. At that point, it would be most useful (though maybe not essential) for any published gitdb or smmap advisories to be listed under the GitPython security tab. But as far as I know there is no way to migrate them from one repository to another. A new repository-local advisory could be created, of course, but its GHSA wouldn't match and be linked with the GHSA in the GitHub Advisory Database.
The text was updated successfully, but these errors were encountered: