Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐍 PyPI
Not in CISA KEV

CVE-2026-88029 — pymongo

Fix: mongodb/mongo-python-driver#3046

CVE-2026-88029 is a CWE-943 vulnerability in pymongo. A fix is available for pymongo — see the affected versions and patch details below.

GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB Python Driver

Also known asGHSA-8fvv-fgr5-f8chPYSEC-2026-4294
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Oct 26, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2026-88029.

EPSS Exploitation Probability

via FIRST.org ↗
0.3%probability of exploitation in next 30 days
Lower Risk-0.21%
Lower risk than most CVEs18th percentile — riskier than 18% of all scored CVEsHighest risk
0.00%0.33%0.65%0.98%0.5%0.3%Oct 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

Real-World Exposure

1 pkg affected
🐍pymongo

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.

Description

Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB Python 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. The affected rename operation may also rename a stored file other than the intended target.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐍PyPIpymongoall versions4.18.1pip install --upgrade 'pymongo==4.18.1'

Affected Products

1 product · 1 configurations
Application
python drivermongodb
≥ 1.6 && < 4.18.1
range

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for pymongo, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update pymongo to 4.18.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-88029 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatImportant

This vulnerability is rated as Important because an authenticated user who can influence a GridFS file identifier can delete all file chunks in the affected bucket, making stored files unreadable, and can retrieve or rename a file other than the intended target. Exploitation requires an application to pass a…

Workaround published by Red Hat
There is no complete mitigation for applications that must accept untrusted structured GridFS file identifiers. The following measures reduce risk until a patched pymongo is available: 1. Pass only literal identifiers to GridFS download, delete, and rename operations (ObjectId, string, or integer). Do not pass dictionaries, BSON documents, or other structured values derived from user input. 2. Restrict which authenticated users can invoke GridFS operations, and do not expose GridFS APIs to untrusted clients. 3. If GridFS is not required, avoid using the gridfs module.
Source: Red Hat security advisory for CVE-2026-88029 (CC BY 4.0)
ProductFixed inAdvisory
Red Hat Enterprise Linux 8python36:3.6-8100020261001091315.4c5117adRHSA-2026:82858
Red Hat OpenShift AI 2.25rhoai/odh-llama-stack-core-rhel9:1791873747RHSA-2026:87410
Red Hat OpenShift AI 3.4rhoai/odh-llama-stack-core-rhel9:1790958470RHSA-2026:84734
Red Hat OpenShift AI 3.5rhoai/odh-ogx-core-rhel9:1790963109RHSA-2026:86891

Frequently Asked Questions

Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB Python 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. The affected rename operation may also rename a stored file other than the intended target.
O3 Security · Impact-Aware SCA

Is CVE-2026-88029 in your dependencies?

Find it across PyPI, including transitive dependencies.

CVE-2026-88029: pymongo — Fixed in 4.18.1