# CVE-2026-120826: MongoDB authorization flaw in aggregation pipeline views

Source: https://junglewise.ai/threats/cve-2026-120826-an-authorization-flaw-in-the-aggregation-and-view-definition  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-11-10. Updated: 2026-11-10  
License: CC BY 4.0 with a link back

CVE-2026-120826 · Severity: medium · CVSS 6.5 · Published 2026-11-10

MongoDB, a widely-used database platform, contains an authorization flaw in how it handles views in sharded (distributed) deployments. A user with basic read-write access to a single database can create a view that bypasses privilege checks, allowing them to read data from other databases on the same shard without authorization. This could expose sensitive data across database boundaries.

## Quick answers

**Is CVE-2026-120826 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-120826 being exploited in the wild.

**How severe is CVE-2026-120826?** Medium severity, with a CVSS score of 6.5, published 10 November 2026.

**Which products and versions are affected?** MongoDB affected versions prior to 9.0.7.

**Is there a fix for CVE-2026-120826?** Yes: fixed in 9.0.7. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-120826 attacked?** It is attacked over the network.

**Am I affected by CVE-2026-120826?** Check whether you run MongoDB at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in 9.0.7

## Technical details

The vulnerability is an authorization bypass in MongoDB's aggregation pipeline and view-definition handling in sharded deployments. A user with only basic read-write privileges on a single database can construct a view using internal-only aggregation stages that escape privilege verification, allowing unauthorized access to data in other databases on the same shard. The attacker needs only database-level write access to create a malicious view; reading it exposes cross-database data.

## Affected products

- MongoDB affected versions prior to 9.0.7

## Timeline

- 2026-11-10: disclosed
- 2026-11-10: patched

## References

- [https://jira.mongodb.org/browse/SERVER-137361](https://jira.mongodb.org/browse/SERVER-137361)
