github mongodb/mongo-php-driver 2.5.6

2 hours ago

The PHP team is happy to announce that version 2.5.6 of the MongoDB PHP extension is now available.

Release Highlights

  • PHPC-2797: Shut down libmongoc when the process exits by @GromNaN in #2200
  • PHPC-2801: Upgrade libmongoc to 2.5.8 by @GromNaN in #2205
    • Fix possible truncation in BSON binary vector on 32-bit builds. CVE-2026-120954
    • Fix a memory leak when an OP_COMPRESSED reply fails to parse. CVE-2026-120678
    • Report writeConcernError consistently, as mandated by the CRUD spec.
  • PHPC-2783: Update libmongocrypt to 1.21.1 by @GromNaN in #2210
    • Validate inputs before interpolating them into a KMS HTTP request. CVE-2026-114655
    • Remove support for the prefixPreview, suffixPreview, and substringPreview query types. Using them in encryptedFields is now an error.

A complete list of resolved issues in this release may be found in JIRA.

Documentation

Documentation is available on PHP.net.

Installation

You can either download and install the source manually, or you can install the extension with:

pie install mongodb/mongodb-extension:2.5.6

Sources and Windows binaries are attached to the GitHub release notes.

Full Changelog: 2.5.5...2.5.6

Don't miss a new mongo-php-driver release

NewReleases is sending notifications on new releases.