CVE-2026-81525mongodb/mongodb Improper Neutralization of Special Elements in Data Query Logic
NVD
Vulnerability Summary
### 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.
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.
CVSS v4.0 Base Metrics — Score 8.6
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NAttack VectorNetwork
Attack ComplexityLow
Attack RequirementsNone
Privileges RequiredLow
User InteractionNone
Confidentiality (Vulnerable System)High
Integrity (Vulnerable System)High
Availability (Vulnerable System)None
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None
Show CVSS v3.x metrics (score 8.1)
CVSS v3.1 Base Metrics — Score 8.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:NAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityNone
Affected & Patched Versions
- mongodb/mongodb < 1.21.4
- mongodb/mongodb >= 2.0.0, < 2.4.1
No patched version published yet
Until a fix ships, reduce exposure:
- Restrict access to the affected service or interface to trusted networks.
- Disable the affected feature if you do not need it.
- Watch the vendor advisory for a firmware or software update.
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run mongodb/mongodb and which version.
- No patched version is listed yet. Limit access to the affected service to trusted networks, and disable the feature if you can.
- Subscribe to the vendor advisory so you learn when a fix ships.
Timeline
- Sep 8, 2026Published
- Sep 8, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new mongodb/mongodb CVEsYou are reading CVE-2026-81525. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Vendor Advisoryhttps://github.com/mongodb/mongo-php-library/security/advisories/GHSA-65fr-j4p9-vc33
- CVE Recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-81525
- Patchhttps://github.com/mongodb/mongo-php-library/pull/1967
- Patchhttps://github.com/mongodb/mongo-php-library/pull/1968
- Patchhttps://github.com/mongodb/mongo-php-library/commit/3a462213bb4fd46efa58a1937b06b1b0553b67a7
- Patchhttps://github.com/mongodb/mongo-php-library/commit/6f305a3b21740080255a3093b12458274c7cc8ca
- Referencehttps://github.com/mongodb/mongo-php-driver/releases/tag/1.21.6
- Referencehttps://github.com/mongodb/mongo-php-driver/releases/tag/1.21.7
- Referencehttps://github.com/mongodb/mongo-php-driver/releases/tag/2.4.1
- Referencehttps://github.com/mongodb/mongo-php-library/releases/tag/1.21.4
- Referencehttps://github.com/mongodb/mongo-php-library/releases/tag/2.4.1
- Issue Trackinghttps://jira.mongodb.org/browse/PHPLIB-1927
- Referencehttps://github.com/advisories/GHSA-65fr-j4p9-vc33
Data last checked: Sep 23, 2026 10:57 UTC