CVE-2026-81525: MongoDB PHP client library - NoSQL Injection
- Cve: CVE-2026-81525
- Name: MongoDB PHP client library - NoSQL Injection
- 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.
- Impact: Attackers can redirect database operations to unintended storage locations, potentially causing data integrity issues.
- Remediation: Update to the latest version of the MongoDB PHP client library.
- Vulnerability type: nosql_injection
- Vulnerability impact: data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- Epss score: 0.00489
- Epss percentile: 0.42615
- Assignee: [email protected]
- Published at: 2026-08-27T20:18:50Z
- Age in days: 89
- Modified at: 2026-09-29T19:17:04Z
- Patch available: yes
- References total: 5
- Products total: 2
- Oss: yes
- Projects total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-81525
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-943 | Improper Neutralization of Special Elements in Data Query Logic |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://jira.mongodb.org/browse/PHPLIB-1927 | Vendor Advisory |
| https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.6 | Product, Release Notes |
| https://github.com/mongodb/mongo-php-driver/releases/tag/2.4.1 | Product, Release Notes |
| https://github.com/mongodb/mongo-php-library/releases/tag/1.21.4 | Product, Release Notes |
| https://github.com/mongodb/mongo-php-library/releases/tag/2.4.1 | Product, Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| mongodb:php_driver | >= 2.0.0, < 2.4.1; < 1.21.6 | no | nvd | /v1/products/mongodb/php_driver |
| mongodb:php_library | >= 2.0.0, < 2.4.1; < 1.21.4 | no | nvd | /v1/products/mongodb/php_library |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| mongodb/mongo-php-library | commit, package, pull, releases, security_advisory | yes | /v1/repositories/mongodb/mongo-php-library |
| mongodb/mongo-php-driver | releases | yes | /v1/repositories/mongodb/mongo-php-driver |
Index
- Repositories: 24
- Repositories high signal: 14
- Packages: 1
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts