{"id":"GHSA-65fr-j4p9-vc33","aliases":["CVE-2026-81525"],"title":"mongodb: Reject \".\" and NUL bytes in database and collection names","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"HIGH","description":"### Impact\nPassing untrusted input as part of a database or collection name may result in targeting a different database or collection than specified.\n\n### Patches\nFixed in PHP library 1.21.4 and 2.4.1.\n\n### Workarounds\nValidate database and collection names prior to passing into APIs.","severity":"high","score":8.1,"published":"2026-09-08T21:27:42.000Z","modified":"2026-09-08T21:56:03.177Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"mongodb/mongodb","sources":[{"name":"OSV · GHSA-65fr-j4p9-vc33","url":"https://osv.dev/vulnerability/GHSA-65fr-j4p9-vc33"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"1.21.4"}],"type":"ECOSYSTEM"}],"versions":["0.1.0","0.2.0","1.0.0","1.0.0-alpha1","1.0.0-beta1","1.0.0-beta2","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.1.0","1.1.0-alpha1","1.1.1","1.1.2","1.10.0","1.10.1","1.11.0","1.12.0","1.13.0","1.13.0-beta1","1.13.1","1.15.0","1.16.0","1.16.1","1.17.0","1.17.1","1.18.0","1.19.0","1.19.1","1.2.0","1.2.0-alpha1","1.20.0","1.21.0","1.21.1","1.21.2","1.21.3","1.3.0","1.3.1","1.3.2","1.4.0","1.4.1","1.4.2","1.4.3","1.5.0","1.5.1","1.5.2","1.6.0","1.6.1","1.7.0","1.7.0-beta1","1.7.0-beta2","1.7.0-rc1","1.7.1","1.7.2","1.8.0","1.8.0-RC1","1.9.0","1.9.0-alpha1"],"fixed":["1.21.4"]},{"ecosystem":"Packagist","name":"mongodb/mongodb","sources":[{"name":"OSV · GHSA-65fr-j4p9-vc33","url":"https://osv.dev/vulnerability/GHSA-65fr-j4p9-vc33"}],"ranges":[{"events":[{"introduced":"2.0.0"},{"fixed":"2.4.1"}],"type":"ECOSYSTEM"}],"versions":["2.0.0","2.1.0","2.1.1","2.1.2","2.2.0","2.3.0","2.4.0"],"fixed":["2.4.1"]}],"sourceAffected":[],"references":["https://github.com/mongodb/mongo-php-library/security/advisories/GHSA-65fr-j4p9-vc33","https://nvd.nist.gov/vuln/detail/CVE-2026-81525","https://github.com/mongodb/mongo-php-library/pull/1967","https://github.com/mongodb/mongo-php-library/pull/1968","https://github.com/mongodb/mongo-php-library/commit/3a462213bb4fd46efa58a1937b06b1b0553b67a7","https://github.com/mongodb/mongo-php-library/commit/6f305a3b21740080255a3093b12458274c7cc8ca","https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.6","https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.7","https://github.com/mongodb/mongo-php-driver/releases/tag/2.4.1","https://github.com/mongodb/mongo-php-library","https://github.com/mongodb/mongo-php-library/releases/tag/1.21.4","https://github.com/mongodb/mongo-php-library/releases/tag/2.4.1","https://jira.mongodb.org/browse/PHPLIB-1927"],"sources":[{"name":"OSV","id":"GHSA-65fr-j4p9-vc33","modified":"2026-09-08T21:56:03.177835Z","url":"https://osv.dev/vulnerability/GHSA-65fr-j4p9-vc33"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1},{"source":"OSV","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","score":8.6}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-28T21:45:31.439Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}