Packagist · mongodb/mongodb
mongodb: Reject "." and NUL bytes in database and collection names
Passing untrusted input as part of a database or collection name may result in targeting a different database or collection than specified.
Fixed in PHP library 1.21.4 and 2.4.1.
Validate database and collection names prior to passing into APIs.
Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.
Check my repoSources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.