High · published August 28, 2026
The MongoDB client library for PHP does not sufficiently sanitize special elements in application-supplied namespace identifiers before using them to construct the target namespace for database operations. An application that incorporates untrusted text into these identifiers may have operations silently directed at a different storage location than the one the application intended.
| Product | Versions | Fixed in |
|---|---|---|
| mongodb/php_library | ≥ 2.0.0, < 2.4.1 | 2.4.1 |
| mongodb/php_driver | < 1.21.6 | 1.21.6 |
| mongodb/php_driver | ≥ 2.0.0, < 2.4.1 | 2.4.1 |
| mongodb/php_library | < 1.21.4 | 1.21.4 |