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
feat: Normalize git repository URLs for API queries on the new API (#3986)
For #3830
Change the new `AffectedVersions` entities to store a normalized Git
repository URL so that queries with the new API logic so that queries
for tags aren't dependent on the exact repository URL:
- remove the protocol/scheme
- There are currently only 16 unique repositories in OSV (test instance)
that don't use the `https://` scheme, and only 3[^1] of these repos have
vulns with both `http://` & `https://`
- remove the `.git` extension
- Mostly, OSS-Fuzz and CURL uses GitHub repos with the `.git` extension,
while our CVE's do not.
I will need to do a re-put of all the GIT records in the test instance
to repopulate the names in the `AffectedVersions` entities.
This doesn't yet fix the issue on production - it's too complicated to
try fix with the current/old querying logic, it'll just be fixed when
the migration is complete.
[^1]: git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
([http](https://osv.dev/vulnerability/CVE-2019-19352),
[https](https://osv.dev/vulnerability/CVE-2023-32255))
git.musl-libc.org/git/musl
([http](https://osv.dev/vulnerability/CVE-2017-15650),
[https](https://osv.dev/vulnerability/CVE-2025-26519))
git.savannah.gnu.org/git/wget.git
([http](https://osv.dev/vulnerability/CVE-2016-7098),
[https](https://osv.dev/vulnerability/CVE-2018-20483))
0 commit comments