What’s Vulnerable › Vulnerabilities

CVE-2026-81525: Cross-tenant database retargeting via dot/NUL injection in namespace strings in the PHP Driver

Description

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.

Affected products

How to fix

Upgrade to a fixed version: MongoDB PHP Driver 1.21.6, 2.4.1; MongoDB PHP Library 1.21.4, 2.4.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-81525 or the next vulnerability affects your stack