CVE-2026-88023 — Vulnerability in mongodb/mongodb — CVE Details
MongoDB: GridFS data disclosure and deletion via query-operator injection in file IDs
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.48%). Schedule for your next planned update.
Does your project use an affected mongodb/mongodb version?
Paste your composer.lock to check it for CVE-2026-88023 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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
Advisory Timeline
- First published October 5, 2026 (51 days ago).
- Last revised November 9, 2026 — 35 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "mongodb/mongodb:^1.21.5"
composer require "mongodb/mongodb:^2.4.2"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| mongodb/mongodb Packagist · Affected: 1.1.0, 1.1.1, 1.1.2, 1.10.0 (+44 more) | 1.21.5 |
| mongodb/mongodb Packagist · Affected: 2.0.0, 2.1.0, 2.1.1, 2.1.2 (+4 more) | 2.4.2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-943
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.0 score means for each attack dimension.
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
References
- https://github.com/mongodb/mongo-php-library/security/advisories/GHSA-8fxw-fmj8-xp7jWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-88023ADVISORY
- https://github.com/mongodb/mongo-php-library/pull/1981WEB
- https://github.com/mongodb/mongo-php-library/commit/8c0b165069ab29d52a80a379a947ac9a55734601WEB
- https://github.com/mongodb/mongo-php-libraryPACKAGE
- https://github.com/mongodb/mongo-php-library/releases/tag/1.21.5WEB
- https://github.com/mongodb/mongo-php-library/releases/tag/2.4.2WEB
- https://jira.mongodb.org/browse/PHPLIB-1929WEB
Frequently Asked Questions
- What is CVE-2026-88023?
- MongoDB: GridFS data disclosure and deletion via query-operator injection in file IDs. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 8.0/10).
- How do I check if my project is affected by CVE-2026-88023?
- CVE-2026-88023 affects mongodb/mongodb. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-88023 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 33.4% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-81525HIGH
mongodb: Reject "." and NUL bytes in database and collection names
- CVE-2026-75592MEDIUM
Kirby: Access to image files outside of the site root via path traversal in the media handling
- CVE-2026-62993MEDIUM
Smarty: SSRF via redirect bypass of trusted_uri using {fetch}