MongoDB fixes 21 vulnerabilities in C, PHP, Python, Ruby and Rust drivers and related libraries
CERT-FR published an advisory on 27 November 2026 covering 21 vulnerabilities fixed by MongoDB in its client drivers and libraries, some of which allow arbitrary code execution. Teams running applications built on the C, PHP, Python, Ruby or Rust drivers, or on Mongoid, Laravel MongoDB and libmongocrypt, are concerned.
What to do now
- Product
- MongoDB drivers and libraries
- Affected versions
- C<1.30.17, 2.x<2.5.10; PHP<1.21.15, 2.1.x<2.1.15, 2.5.x<2.5.9; PyMongo<4.20.2; Ruby<2.26.2; Rust<3.10.2; Mongoid<9.1.3; Laravel<5.12.2; libmongocrypt<1.21.2
- Fixed in
- C 1.30.17/2.5.10, PHP 1.21.15/2.1.15/2.5.9, PyMongo 4.20.2, Ruby 2.26.2, Rust 3.10.2, Mongoid 9.1.3, Laravel 5.12.2
- CVE
- CVE-2026-135133
CERT-FR advisory CERTFR-2026-AVI-1633, released on 27 November 2026, consolidates twenty-one MongoDB security bulletins issued on 25 November. Together they cover 21 CVE identifiers, ranging from CVE-2026-135133 to CVE-2026-135898. The database server itself is not on the list: the affected products are the drivers and client libraries that applications use to talk to MongoDB.
The scope is broad. The C driver is vulnerable before 1.30.17 and, on the 2.x branch, before 2.5.10. For PHP, the safe floors are 1.21.15, 2.1.15 on the 2.1.x branch and 2.5.9 on the 2.5.x branch. PyMongo, the Python driver, is affected before 4.20.2. The Ruby driver is affected before 2.26.2, and its bson library on the 5.x branch before 5.2.1. The Rust driver is affected before 3.10.2, the Mongoid ODM before 9.1.3, the Laravel MongoDB integration before 5.12.2, and libmongocrypt, which handles client-side encryption, before 1.21.2.
The advisory lists a wide range of impacts: arbitrary code execution, privilege escalation, loss of data confidentiality and integrity, security policy bypass, denial of service and cross-site request forgery. CERT-FR does not map individual flaws to these impacts or describe the conditions for exploitation; those details sit in the vendor tickets linked from the advisory.
The source does not report any active exploitation. Fixes are available: CERT-FR points to MongoDB's bulletins for the patches, and the version thresholds in the advisory identify the releases to move to.
Because these drivers usually ship as application dependencies, patching typically means updating through the language package manager (Composer, pip, RubyGems, Cargo), then rebuilding and redeploying the application, rather than touching the MongoDB server.
What to do now
- Inventory every application that bundles a MongoDB driver (C, PHP, Python, Ruby, Rust) or Mongoid, Laravel MongoDB, bson or libmongocrypt, including inside container images.
- Upgrade to at least C 1.30.17 or 2.5.10, PHP 1.21.15, 2.1.15 or 2.5.9, PyMongo 4.20.2, Ruby 2.26.2, bson 5.2.1, Rust 3.10.2, Mongoid 9.1.3, Laravel MongoDB 5.12.2 and libmongocrypt 1.21.2.
- Rebuild and redeploy the affected applications, then confirm that production actually loads the patched version.
- Read the MongoDB bulletins referenced by CERT-FR to understand how each flaw applies to your own usage.