GHSA-65fr-j4p9-vc33HighCVSS 8.1

mongodb: Reject "." and NUL bytes in database and collection names

Published
September 8, 2026
Last Modified
September 8, 2026

🔗 CVE IDs covered (1)

📋 Description

Impact

Passing untrusted input as part of a database or collection name may result in targeting a different database or collection than specified.

Patches

Fixed in PHP library 1.21.4 and 2.4.1.

Workarounds

Validate database and collection names prior to passing into APIs.

🎯 Affected products2

  • composer/mongodb/mongodb:< 1.21.4
  • composer/mongodb/mongodb:>= 2.0.0, < 2.4.1

🔗 References (13)