GridFS data deletion via query-operator injection in file IDs in the MongoDB Go Driver
Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB Go 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 cause all GridFS file chunks in the affected bucket to be removed, rendering stored file content unreadable.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-88031
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 02:24 UTC · Revision 1
Source evidence
GridFS data deletion via query-operator injection in file IDs in the MongoDB Go Driver
core-osv · Original sourcePublished 10 Sept 2026, 17:59 UTC
Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB Go 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 cause all GridFS file chunks in the affected bucket to be removed, rendering stored file content unreadable.
osv:CVE-2026-88031
Complete source record
{
"id": "19f52a4f351c892d6cfefdf4d28e8808729933adc3fc859f98f2fe3d24aaa28e",
"url": "https://osv.dev/vulnerability/CVE-2026-88031",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "GridFS data deletion via query-operator injection in file IDs in the MongoDB Go Driver",
"summary": "Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB Go 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 cause all GridFS file chunks in the affected bucket to be removed, rendering stored file content unreadable.",
"evidence": "osv:CVE-2026-88031",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-88031",
"aliases": [
"CVE-2026-88031"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/mongodb/mongo-go-driver",
"type": "GIT",
"events": [
{
"introduced": "c6d13693a881560f3a85a1729e7f074c5f459c7d"
},
{
"fixed": "5d8c3a2d65a7ea5c963d85a2d0e7c5b78a1843fa"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:mongodb:go_driver:*:*:*:*:*:mongodb:*:*",
"range": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.9.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v2.9.0",
"v2.8.0",
"v2.6.0",
"v2.5.0",
"v2.4.0",
"v2.3.0",
"v2.2.0",
"v2.1.0",
"v2.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-88031.json"
}
}
],
"modified": "2026-10-28T02:30:32.336200880Z",
"provider": "osv",
"references": [
"https://jira.mongodb.org/browse/GODRIVER-4081",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/88xxx/CVE-2026-88031.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-88031"
],
"provider_metadata": {
"cwe_ids": [
"CWE-943"
],
"cna_assigner": "mongodb",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "1.0.0"
},
{
"fixed": "1.17.10"
},
{
"introduced": "2.0.0"
},
{
"fixed": "2.9.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/88xxx/CVE-2026-88031.json"
}
},
"related_cves": [
{
"value": "CVE-2026-88031",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 499618,
"published_at": "2026-09-10T17:59:35.845+00:00"
}