CVE-2026-88023: MongoDB GridFS Data Disclosure And Deletion Vulnerability

MODERATE
Advisory Identifier: GHSA-8fxw-fmj8-xp7j
Published
Advisory Summary

CVE-2026-88023 is a MODERATE gridfs data disclosure and deletion vulnerability (General Security Weakness) affecting MongoDB libraries in the Packagist ecosystem. The issue involves gridfs data disclosure and deletion via query-operator injection in file ids. Remediation is available by upgrading affected packages to version 1.24.5, 2.4.2.

CVE-2026-88023 at a Glance

CVE Identifier CVE-2026-88023
GHSA Identifier GHSA-8fxw-fmj8-xp7j
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product MongoDB
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2026-88023

To remediate this vulnerability, upgrade all affected MongoDB dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

mongodb/mongodb fixed: 1.24.5
Upgrade mongodb/mongodb to 1.24.5
mongodb/mongodb fixed: 2.4.2
Upgrade mongodb/mongodb to 2.4.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for mongodb/mongodb

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-88023, inspect your project dependencies for MongoDB:

inspect dependencies for mongodb/mongodb

Analyze the terminal output to locate any version of MongoDB in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.24.5), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In MongoDB, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB PHP Library can cause a caller-supplied structured file identifier to be interpreted as a query condition rather than as a literal identifier. An authenticated user who can influence the identifier passed by an affected application may obtain stored file content beyond the intended target or cause all GridFS file chunks in the affected bucket to be removed, rendering stored file content unreadable. The affected rename operation may also rename a stored file other than the intended target. ### Patches Fixed in 1.21.5 and 2.4.2. ### Workarounds Validate GridFS IDs. ### References https://jira.mongodb.org/browse/PHPLIB-1929

CVE-2026-88023 Affected MongoDB Versions

2 component(s)
Fixed Versions:
1.24.52.4.2
Product / Package Ecosystem Affected Versions Fixed Version
mongodb/mongodb
Packagist
≥ 1.1.0
< 1.24.5
1.24.5
mongodb/mongodb
Packagist
≥ 2.0.0
< 2.4.2
2.4.2

References

Frequently Asked Questions

What is CVE-2026-88023?
CVE-2026-88023 is a security vulnerability in MongoDB involving GridFS data disclosure and deletion via query-operator injection in file IDs under General Security Weakness.
Which MongoDB versions are affected?
Affected versions include releases prior to 1.24.5, 2.4.2 across affected packages: mongodb/mongodb.
What version fixes CVE-2026-88023?
Upgrading to 1.24.5, 2.4.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mongodb/mongodb affected?
Yes, mongodb/mongodb is affected in releases prior to 1.24.5, 2.4.2. Upgrade your dependency to 1.24.5, 2.4.2 or later.
What CWE is associated with CVE-2026-88023?
CVE-2026-88023 is classified under General Security Weakness.
How can I check Packagist dependencies for CVE-2026-88023?
Run the dependency tree command: 'inspect dependencies for mongodb/mongodb'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8fxw-fmj8-xp7j",
  "modified" : "2026-10-05T23:26:58Z",
  "published" : "2026-10-05T23:26:58Z",
  "aliases" : [ "CVE-2026-88023" ],
  "summary" : "MongoDB: GridFS data disclosure and deletion via query-operator injection in file IDs",
  "details" : "### Impact\nImproper neutralization of special elements in data query logic in the GridFS component of the MongoDB PHP Library can cause a caller-supplied structured file identifier to be interpreted as a query condition rather than as a literal identifier. An authenticated user who can influence the identifier passed by an affected application may obtain stored file content beyond the intended target or cause all GridFS file chunks in the affected bucket to be removed, rendering stored file content unreadable. The affected rename operation may also rename a stored file other than the intended target.\n\n\n### Patches\nFixed in 1.21.5 and 2.4.2.\n\n### Workarounds\nValidate GridFS IDs.\n\n### References\nhttps://jira.mongodb.org/browse/PHPLIB-1929",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mongodb/mongodb"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.1.0"
      }, {
        "fixed" : "1.24.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 1.21.5"
    }
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mongodb/mongodb"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.4.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mongodb/mongo-php-library/security/advisories/GHSA-8fxw-fmj8-xp7j"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-88023"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mongodb/mongo-php-library/pull/1981"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mongodb/mongo-php-library/commit/8c0b165069ab29d52a80a379a947ac9a55734601"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mongodb/mongo-php-library"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mongodb/mongo-php-library/releases/tag/1.21.5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mongodb/mongo-php-library/releases/tag/2.4.2"
  }, {
    "type" : "WEB",
    "url" : "https://jira.mongodb.org/browse/PHPLIB-1929"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-05T23:26:58Z",
    "nvd_published_at" : null
  }
}