CVE-2026-13057: CWE-20 Improper input validation in MongoDB MongoDB Server
An issue in the server’s Atlas Search integration allows an authenticated user to bypass per-user access controls. In sharded topologies, the $search and $searchMeta aggregation stages use internal routing that is normally populated only by the trusted router during sharded search planning. Due to insufficient input validation, an authenticated client can supply these fields directly.
AI Analysis
Technical Summary
This vulnerability arises from improper input validation (CWE-20) in MongoDB Server's Atlas Search integration within sharded cluster environments. The $search and $searchMeta aggregation stages rely on internal routing information normally populated by a trusted router. However, an authenticated user can directly supply these routing fields, bypassing per-user access controls. This flaw affects MongoDB Server versions 8.0, 8.2.0, and 8.3.0. The CVSS 4.0 base score is 6.0, indicating medium severity. No official patch or remediation level has been published at this time, and no known exploits are reported in the wild.
Potential Impact
An authenticated user can bypass per-user access controls in MongoDB Server's Atlas Search feature on sharded topologies. This could allow unauthorized access to data or search results that should be restricted based on user permissions. The impact is limited to authenticated users and does not involve privilege escalation or remote code execution. The vulnerability affects the integrity of access control enforcement in the Atlas Search aggregation stages.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict access to trusted authenticated users only and monitor for unusual usage of $search and $searchMeta aggregation stages in sharded environments. Avoid exposing Atlas Search functionality to untrusted users. Follow MongoDB's official advisories for updates on patches or temporary mitigations.
CVE-2026-13057: CWE-20 Improper input validation in MongoDB MongoDB Server
Description
An issue in the server’s Atlas Search integration allows an authenticated user to bypass per-user access controls. In sharded topologies, the $search and $searchMeta aggregation stages use internal routing that is normally populated only by the trusted router during sharded search planning. Due to insufficient input validation, an authenticated client can supply these fields directly.
CVSS v4.0
Score 6.0medium
Affected software
pkg:github/mongodb/mongoRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability arises from improper input validation (CWE-20) in MongoDB Server's Atlas Search integration within sharded cluster environments. The $search and $searchMeta aggregation stages rely on internal routing information normally populated by a trusted router. However, an authenticated user can directly supply these routing fields, bypassing per-user access controls. This flaw affects MongoDB Server versions 8.0, 8.2.0, and 8.3.0. The CVSS 4.0 base score is 6.0, indicating medium severity. No official patch or remediation level has been published at this time, and no known exploits are reported in the wild.
Potential Impact
An authenticated user can bypass per-user access controls in MongoDB Server's Atlas Search feature on sharded topologies. This could allow unauthorized access to data or search results that should be restricted based on user permissions. The impact is limited to authenticated users and does not involve privilege escalation or remote code execution. The vulnerability affects the integrity of access control enforcement in the Atlas Search aggregation stages.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict access to trusted authenticated users only and monitor for unusual usage of $search and $searchMeta aggregation stages in sharded environments. Avoid exposing Atlas Search functionality to untrusted users. Follow MongoDB's official advisories for updates on patches or temporary mitigations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mongodb
- Date Reserved
- 2026-06-23T17:59:59.476Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a61231e9c2644c7f89b2c7f
Added to database: 07/22/2026, 20:07:58 UTC
Last enriched: 07/22/2026, 20:37:22 UTC
Last updated: 07/23/2026, 02:51:54 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.