CVE-2026-88023: MongoDB GridFS Data Disclosure And Deletion Vulnerability
MODERATECVE-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
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.
Upgrade mongodb/mongodb to 1.24.5
Upgrade mongodb/mongodb to 2.4.2
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
CVE-2026-88023 Affected MongoDB Versions
2 component(s)| 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?
Which MongoDB versions are affected?
What version fixes CVE-2026-88023?
Is mongodb/mongodb affected?
What CWE is associated with CVE-2026-88023?
How can I check Packagist dependencies for CVE-2026-88023?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}