MongoDB Ruby Driver - Improper neutralization of special elements in data query logic in the GridFS component
Published: September 10, 2026
SECURITY IDENTIFIERS
- CVE: CVE-2026-88030 (NVD)
- GHSA: GHSA-4ww7-gqv6-mffc
GEM
SEVERITY
CVSS v3.x: 8.3 (High)
UNAFFECTED VERSIONS
< 2.0.0
PATCHED VERSIONS
>= 2.26.0
DESCRIPTION
Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB Ruby Driver 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.
RELATED
- https://nvd.nist.gov/vuln/detail/CVE-2026-88030
- https://rubygems.org/gems/mongo/versions/2.26.0
- https://github.com/mongodb/mongo-ruby-driver/releases/tag/v2.26.0
- https://github.com/mongodb/mongo-ruby-driver/pull/3105
- https://github.com/mongodb/mongo-ruby-driver/commit/ed62bb56c2e24c79113709331862d0aa3da74c6d
- https://jira.mongodb.org/browse/RUBY-3941
- https://github.com/advisories/GHSA-4ww7-gqv6-mffc
