
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-120825 is an authorization bypass vulnerability in the aggregation framework of MongoDB Server that allows an authenticated user with only basic database privileges to read collections they have not been explicitly granted access to. The flaw arises because privilege evaluation during view definition validation does not cover nested portions of the supplied aggregation pipeline, enabling the resulting view to return unauthorized data — including stored authentication material. It affects MongoDB Server versions 9.0.0 through 9.0.6 (fixed in 9.0.7). The vulnerability was published on November 10, 2026, and carries a CVSS v3.1 score of 6.5 (Medium) and a CVSS v4.0 score of 7.1 (High) (GitHub Advisory, MongoDB Jira).
The root cause is classified as CWE-862 (Missing Authorization): when MongoDB validates a view definition's aggregation pipeline, it performs privilege checks on the top-level pipeline stages but fails to evaluate privileges for nested sub-pipelines — for example, a $_internalFromPipeline stage embedded within a $graphLookup stage (GitHub Advisory). An attacker exploits this by creating a view that uses $graphLookup with a nested $_internalFromPipeline containing a $lookup against a restricted collection (e.g., admin.system.users); the view creation succeeds because the nested pipeline bypasses the privilege check, and querying the view then returns the restricted data (MongoDB Jira). Exploitation requires network access to the MongoDB instance and a valid authenticated account with at least readWriteAnyDatabase or equivalent basic privileges — no elevated or administrative role is needed to trigger the bypass.
Successful exploitation allows an authenticated low-privilege user to read the contents of any collection in the database that they were explicitly denied access to, including the admin.system.users collection which stores hashed credentials and authentication material (GitHub Advisory). The confidentiality impact is rated High, with no integrity or availability impact. Exposure of stored authentication material could enable credential theft and subsequent privilege escalation or lateral movement within the MongoDB environment (MongoDB Jira).
A proof-of-concept reproduction script is publicly available via the MongoDB Jira issue SERVER-136876, written in JavaScript for the mongo shell; it demonstrates the authorization bypass by creating a view that leaks admin.system.users contents to a low-privilege user (MongoDB Jira). The PoC is characterized as a regression test rather than a weaponized exploit tool, and there is no evidence of in-the-wild exploitation at this time (GitHub Advisory). The EPSS score is approximately 0.44% (39th percentile), and the vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities catalog. NVD SSVC classifies exploitation status as "poc" and the technical impact as "partial."
readWriteAnyDatabase or basic read/write privileges on the target instance.admin database (or another target database), issue a create command defining a view that uses $graphLookup with a nested $_internalFromPipeline stage containing a $lookup against the restricted collection (e.g., system.users):db.runCommand({
create: "leak",
viewOn: "anchor",
pipeline: [{
$graphLookup: {
from: "anchor",
startWith: "$x",
connectFromField: "x",
connectToField: "x",
as: "g",
$_internalFromPipeline: [{
$lookup: { from: "system.users", pipeline: [], as: "users" }
}]
}
}]
});db.leak.findOne()system.users, which can then be used for offline cracking or further privilege escalation (MongoDB Jira).create commands for views with unusual pipeline definitions containing $graphLookup and $_internalFromPipeline stages, particularly targeting system.users or other sensitive collections; access log entries showing low-privilege users querying view collections in the admin database.view) in the admin or other sensitive databases, especially those created by non-administrative users; views with pipelines referencing $_internalFromPipeline or cross-database $lookup against system.users.admin database; unusual query patterns involving findOne() or find() against newly created view collections by low-privilege accounts.MongoDB has released version 9.0.7 which contains the fix for this vulnerability; administrators should upgrade MongoDB Server from any 9.0.x version prior to 9.0.7 immediately (GitHub Advisory, MongoDB Jira). As a post-incident measure, review and audit MongoDB access logs to identify any unauthorized data access that may have occurred, and rotate any authentication credentials (passwords, API keys) that may have been exposed through the system.users collection. No configuration-based workaround has been published; upgrading to 9.0.7 or later is the only confirmed remediation.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."