Vulnerability DatabaseCVE-2026-120826

CVE-2026-120826: 
MongoDB vulnerability analysis and mitigation

Overview

CVE-2026-120826 is an authorization bypass vulnerability in MongoDB Server's aggregation and view-definition handling for sharded deployments. An authenticated user with only basic read-write privileges on a single database can define a view whose underlying processing is not fully subjected to privilege checking, potentially exposing data from other databases on the same shard. The vulnerability affects MongoDB Server versions 9.0.0 through 9.0.6 (fixed in 9.0.7). It carries a CVSS v3.1 score of 6.5 (Medium) and a CVSS v4.0 score of 7.1 (High) (GitHub Advisory, MongoDB Jira).

Technical details

The root cause is classified as CWE-863 (Incorrect Authorization): the MongoDB aggregation engine and view-definition subsystem in sharded deployments fail to fully enforce privilege checks on the underlying pipeline operations when a view is created by a low-privileged user. An attacker with network access and valid credentials (read-write on any single database) can craft a view definition that references collections in other databases on the same shard, and the privilege check is not correctly applied when that view is subsequently read. No special configuration or user interaction is required beyond having a valid low-privilege account (GitHub Advisory, MongoDB Jira).

Impact

Successful exploitation allows an authenticated attacker to read data from databases they are not authorized to access, provided those databases reside on the same shard as the attacker's authorized database. The impact is limited to confidentiality — no integrity or availability impact has been identified. In multi-tenant or shared MongoDB sharded cluster environments, this could expose sensitive data belonging to other users or applications co-located on the same shard (GitHub Advisory).

Exploitability

There is no public proof-of-concept exploit code and no evidence of in-the-wild exploitation at this time. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, and SSVC assessment indicates it is not automatable. The EPSS score is approximately 0.355%, placing it in the 30th percentile for exploitation likelihood within 30 days (GitHub Advisory, MongoDB Jira).

Exploitation steps

  1. Obtain credentials: Acquire valid MongoDB credentials with read-write privileges on at least one database in the target sharded cluster (e.g., via a free trial, compromised application account, or insider access).
  2. Identify target shard: Determine which shard hosts the attacker's authorized database and identify other databases co-located on the same shard using cluster metadata (e.g., sh.status() if accessible, or by inference).
  3. Craft a malicious view: Using the authorized database, create a view with an aggregation pipeline that references collections in another database on the same shard — for example: db.createView('maliciousView', { $lookup: { from: 'otherDB.sensitiveCollection', ... } }) or equivalent pipeline syntax that crosses database boundaries.
  4. Read the view: Query the malicious view (db.maliciousView.find()) to retrieve data from the unauthorized database, bypassing the privilege check that should have blocked cross-database access.
  5. Exfiltrate data: Extract the returned documents containing data from the unauthorized database for further analysis or exfiltration (GitHub Advisory, MongoDB Jira).

Indicators of compromise

  • Logs: MongoDB audit logs showing createView operations by low-privileged users that reference collections or namespaces outside their authorized database; subsequent find or aggregation operations on those views.
  • Database: Presence of view definitions in a database that include $lookup, $graphLookup, $unionWith, or other pipeline stages referencing namespaces in other databases on the same shard.
  • Network: Unusual query patterns from a single low-privilege user account accessing data volumes inconsistent with their authorized database scope.
  • Operational: Unexpected cross-database data access patterns visible in MongoDB's system.profile collection or slow query logs, particularly involving view reads that span multiple database namespaces (GitHub Advisory).

Mitigation and workarounds

MongoDB has released version 9.0.7 which addresses this vulnerability; upgrading is the recommended remediation (MongoDB Jira). For deployments that cannot be immediately patched, administrators should audit and restrict view definitions in sharded environments — particularly those created by users with basic read-write privileges — and review whether any existing views reference cross-database namespaces. Additionally, monitoring access patterns to views for suspicious cross-database data access can help detect potential exploitation until patching is complete (GitHub Advisory).

Additional resources


Source: This report was generated using AI

Related MongoDB vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-120828HIGH8.7
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesNov 10, 2026
CVE-2026-120824HIGH8.7
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesNov 10, 2026
CVE-2026-120826HIGH7.1
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesNov 10, 2026
CVE-2026-120825HIGH7.1
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesNov 10, 2026
CVE-2026-120823LOW2.3
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesNov 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

Additional Wiz resources

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