CVE-2026-88031
Grafana vulnerability analysis and mitigation

Overview

CVE-2026-88031 is a NoSQL injection vulnerability (CWE-943) in the GridFS component of the MongoDB Go Driver that allows an authenticated attacker to cause all file chunks in an affected GridFS bucket to be deleted. The flaw arises because a caller-supplied structured file identifier can be interpreted as a query condition rather than a literal identifier. Affected versions span MongoDB Go Driver 1.0.0 through 1.17.9 and 2.0.0 through 2.9.0; fixed versions are 1.17.10 and 2.9.1. It was published on September 10, 2026, with a CVSS v3.1 base score of 8.1 (High) and a CVSS v4.0 base score of 6.1 (Medium) (GitHub Advisory).

Technical details

The root cause is improper neutralization of special elements in data query logic (CWE-943), mapped to CAPEC-676 (NoSQL Injection). When an application passes a structured (e.g., BSON document) file identifier to GridFS operations in the MongoDB Go Driver, the driver fails to treat it strictly as a literal value; instead, the structured input is interpreted as a query operator expression, enabling the caller to craft a condition that matches and deletes all chunks in the bucket. Exploitation requires the attacker to be authenticated and able to influence the file identifier argument passed by the application to GridFS — for example, through an API endpoint that accepts user-controlled file IDs without sanitization. The vulnerability is tracked upstream in MongoDB's issue tracker as GODRIVER-4081 (GitHub Advisory).

Impact

Successful exploitation results in permanent, irreversible deletion of all GridFS file chunks within the affected bucket, rendering all stored file content unreadable and causing complete data loss for that bucket. There is no confidentiality impact (data is not disclosed), but integrity and availability are both severely affected. Applications relying on GridFS for binary or large-object storage — such as document management systems, media platforms, or backup services — could suffer catastrophic data loss with no recovery path unless external backups exist (GitHub Advisory).

Exploitability

As of the publication date, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (GitHub Advisory). The EPSS score is 0.0, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. NVD SSVC assessment classifies exploitation as "none" and the attack as non-automatable, reflecting the requirement for an authenticated user with the ability to influence the file identifier passed to GridFS operations.

Exploitation steps

  1. Identify a target application: Locate an application that uses the MongoDB Go Driver (versions 1.0.0–1.17.9 or 2.0.0–2.9.0) and exposes a GridFS file operation (e.g., delete, download) via an API endpoint that accepts a user-controlled file identifier.
  2. Obtain authentication: Acquire valid credentials or a session token for the target application — even low-privilege user access is sufficient.
  3. Craft a malicious structured identifier: Instead of supplying a plain ObjectID or string, construct a BSON/JSON document that functions as a MongoDB query operator (e.g., {"$gte": ""} or {"$exists": true}) as the file identifier argument.
  4. Submit the payload: Send the crafted identifier to the vulnerable GridFS endpoint (e.g., via an HTTP request to a file management API), causing the Go Driver to interpret it as a query condition rather than a literal file ID.
  5. Trigger mass deletion: The driver executes a delete operation matching all chunks in the bucket that satisfy the injected condition, effectively wiping all stored file content and rendering the bucket unreadable (GitHub Advisory).

Indicators of compromise

  • Logs: Sudden spike in GridFS chunk deletion events in MongoDB audit logs; application logs showing unexpected successful delete operations for file identifiers that are structured objects rather than plain IDs.
  • Database: GridFS fs.chunks collection (or custom bucket chunks collection) becomes empty or drastically reduced in document count without corresponding application-level bulk delete activity; fs.files records remain while associated chunks are missing.
  • Network: Authenticated API requests to file management endpoints containing JSON/BSON-structured values (e.g., {"$gte":""}) in file identifier fields rather than standard ObjectID strings.
  • Application Behavior: Users reporting that previously accessible files are now unreadable or return errors; application errors indicating missing GridFS chunks for existing file metadata records.

Mitigation and workarounds

MongoDB has released patched versions of the Go Driver: 1.17.10 (for the 1.x branch) and 2.9.1 (for the 2.x branch). Upgrading to these versions is the primary recommended remediation (GitHub Advisory). For applications that cannot upgrade immediately, implement strict input validation to ensure file identifiers passed to GridFS operations are always plain scalar values (e.g., ObjectID or string), rejecting any structured or document-type inputs. Additionally, restrict application-level access to GridFS operations to trusted users only, and monitor GridFS bucket activity for unusual bulk deletion patterns.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Affected

bookworm

golang-mongodb-mongo-driver

Affected

sid

golang-mongodb-mongo-driver

Affected

trixie

golang-mongodb-mongo-driver

Affected

RHEL / CentOS

Affected

OpenShift

cri-o.src

Affected

RHEL 8

grafana.src

Affected

RHEL 9

grafana.src

Affected

RHEL 10

grafana.src

Affected

SourceThis report was generated using AI

Related Grafana vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-90776HIGH8.7
  • Grafana logoGrafana
  • grafana.src
NoNoSep 13, 2026
CVE-2026-87776HIGH7.5
  • Grafana logoGrafana
  • pcs-snmp
NoNoSep 11, 2026
CVE-2026-88031MEDIUM6.1
  • Grafana logoGrafana
  • grafana-opentsdb
NoNoSep 10, 2026
CVE-2026-88015MEDIUM5.3
  • Grafana logoGrafana
  • fence-agents-cisco-ucs
NoYesSep 10, 2026
CVE-2026-88059MEDIUM4
  • JavaScript logoJavaScript
  • mozjs60.src
NoYesSep 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management