Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐘 Packagist
Not in CISA KEV

CVE-2026-81525 — mongodb

Fix: mongodb/mongo-php-library#1967

CVE-2026-81525 is a CWE-943 vulnerability in mongodb/mongodb. A fix is available for mongodb/mongodb — see the affected versions and patch details below.

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

Also known asGHSA-65fr-j4p9-vc33
Published
Updated
Affected
2 pkgs
Patched
2 / 2
Exploits
None indexed
Exploitation data as of Oct 10, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
0.5%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs40th percentile — riskier than 40% of all scored CVEsHighest risk
0.00%0.33%0.66%0.99%0.3%0.5%0.5%Sep 26Oct 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

Real-World Exposure

2 pkgs affected
🐘mongodb/mongodb🐘mongodb/mongodb

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.

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 Packages

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
🐘Packagistmongodb/mongodball versions1.21.4composer require mongodb/mongodb:^1.21.4
🐘Packagistmongodb/mongodb≥ 2.0.0&&< 2.4.12.4.1composer require mongodb/mongodb:^2.4.1

Affected Products

2 products · 4 configurations
Application
php drivermongodb
≥ 2.0.0 && < 2.4.1
range
Application
php librarymongodb
≥ 2.0.0 && < 2.4.1
range

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for mongodb/mongodb, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update mongodb/mongodb to 1.21.4 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-81525 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2026-81525 in your dependencies?

Find it across Packagist, including transitive dependencies.

CVE-2026-81525: mongodb — Fixed in 1.21.4