NetSight
high8.1

CVE-2026-81525

The MongoDB client library for PHP does not sufficiently sanitize special elements in application-supplied namespace identifiers before using them to construct…

Impact

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 packages

EcosystemPackageAffectedFixed in
composermongodb/mongodb< 1.21.41.21.4

Affected products

VendorProductAffected versions
MongodbPhp Driver
before 1.21.6
from 2.0.0 before 2.4.1
MongodbPhp Library
before 1.21.4
from 2.0.0 before 2.4.1

Weakness classification

References