Skip to content

fix(mongodb-constants): fix regexp that picks valid part of semver version#168

Merged
gribnoysup merged 2 commits intomainfrom
fix-version-regex
Sep 21, 2023
Merged

fix(mongodb-constants): fix regexp that picks valid part of semver version#168
gribnoysup merged 2 commits intomainfrom
fix-version-regex

Conversation

@gribnoysup
Copy link
Copy Markdown
Collaborator

The regex that we used to clean up current server version was only picking up a single number from the patch version because of the unnecessary ? usage. Seems like we had this bug for awhile now, even before we moved all this logic to this package, just never noticed or got reports before, I noticed this only now when testing $vectorSearch stage

Also @mcasimir asked to add tests for version as we specify it in constants, added it in the same patch as a drive-by

@gribnoysup gribnoysup merged commit cee768e into main Sep 21, 2023
@gribnoysup gribnoysup deleted the fix-version-regex branch September 21, 2023 13:14
github-actions Bot added a commit that referenced this pull request Apr 22, 2026
Adds npm overrides to force safe versions of minimatch for packages
that were locked to vulnerable transitive versions:

- mocha pinned minimatch to exactly 3.0.4 (vulnerable: < 3.1.4)
  → override to 3.1.5
- depcheck required ^7.4.6 but was locked to 7.4.6 (vulnerable: < 7.4.8)
  → override to 7.4.9
- @typescript-eslint/typescript-estree required ^9.0.4, locked at 9.0.5
  (vulnerable: < 9.0.7) → override to 9.0.9
- glob@10 required ^9.0.4, locked at 9.0.5 → override to 9.0.9
- ignore-walk, @npmcli/package-json, cacache had minimatch 10.2.0
  locked (vulnerable: < 10.2.3) → override to 10.2.5

Resolves Dependabot alerts: #169, #168, #166, #165, #163, #162, #158, #154, #153, #152

GHSA-23c5-xmqv-rm74 (CVE-2026-27904)
GHSA-7r86-cg39-jmmj (CVE-2026-27903)
GHSA-3ppc-4f35-3m26 (CVE-2026-26996)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants