CVE-2026-81524: Mongoc Missing Db Name Validation

Database names must be validated with _mongoc_validate_db_name before assembling commands or formatting namespaces to prevent namespace injection.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0C
greprules fetch cve-2026-81524-mongoc-missing-db-name-validation --engine opengrep

Description

Database names must be validated with _mongoc_validate_db_name before assembling commands or formatting namespaces to prevent namespace injection.