Broken access controlin MongoDB Server.
Proof of concept public (GitHub).
An unauthorized user may leverage a specially crafted aggregation pipeline to access data without proper authorization due to improper handling of the $mergeCursors stage in MongoDB Server. This may lead to access to data without further authorisation. This issue affects MongoDB Server MongoDB Server v8.0 versions prior to 8.0.7, MongoDB Server v7.0 versions prior to 7.0.19 and MongoDB Server v6.0 versions prior to 6.0.22
- Upgrade MongoDB Server to 6.0.22, 7.0.19, 8.0.7 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 26 Jun 2025CVE ID reserved by mongodb.
- 7 Jul 2025Published in the CVE List.
- 18 Jul 2025CVE record last updated.
- 23 Aug 2025First public proof of concept on GitHub.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other Server vulnerabilities
Same weakness: Improper authorization
Patchminder. CVE-2025-6713: Broken access control in MongoDB Server. https://patchminder.com/cve/cve-2025-6713/ (accessed 5 December 2026).