CVE-2026-18704

Improper Authorization in MongoDB Aggregation Framework Allows Read-Only User to Perform Unauthorized Write Operations

Published Aug 11, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
An issue in MongoDB Server's aggregation framework could allow an authenticated user with only read privileges to perform write operations against collections they should not be able to modify. This is due to an internal-use aggregation stage being reachable by external clients without an appropriate authorization check on its embedded operations.

Analysis

AI-generated

Technical impact

The vulnerability is an improper authorization flaw in the aggregation framework of MongoDB Server. An authenticated user with only read permissions can invoke a special aggregation stage that was intended for internal use. Because this stage performs write operations on collections, the lack of an additional authorization check allows the attacker to modify data in collections they should not have access to. This unauthorized write capability can alter, delete, or insert records, compromising data integrity and potentially allowing a malicious user to tamper with application state.

Affected Systems

Affected systems include all deployments of MongoDB Server. The CNAs list the vendor/product as MongoDB:MongoDB Server. No specific version information is provided, so all versions that contain the aggregation framework are potentially vulnerable until a fix is applied.

Risk and Exploitability

The CVSS score of 7.1 indicates a fairly high severity, while the EPSS score of less than 1% suggests that exploitation is unlikely to be widespread at this time. The vulnerability is not in the KEV catalog, so no known widespread exploitation is currently reported. Based on the description, it is inferred that authentication is required and the attack vector is external. An attacker would need valid credentials to a user with read privileges and then construct an aggregation request that includes the problematic stage, thereby gaining write access to otherwise protected collections.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest MongoDB Server update that addresses the aggregation framework authorization issue.
  • Revoke or reduce privileges of any user accounts that only require read access, ensuring that they cannot execute arbitrary aggregation pipelines that contain write stages.
  • Enable auditing and monitor log files for unexpected writes performed via the aggregation framework, and review role assignments to detect any misconfigurations.

Generated by OpenCVE AI on August 12, 2026 at 19:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Mongodb mongodb
CPEs cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*
Vendors & Products Mongodb mongodb
Type Values Removed Values Added
First Time appeared Mongodb
Mongodb mongodb Server
Vendors & Products Mongodb
Mongodb mongodb Server
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description An issue in MongoDB Server's aggregation framework could allow an authenticated user with only read privileges to perform write operations against collections they should not be able to modify. This is due to an internal-use aggregation stage being reachable by external clients without an appropriate authorization check on its embedded operations.
Title Improper Authorization in MongoDB Aggregation Framework Allows Read-Only User to Perform Unauthorized Write Operations
Weaknesses CWE-862
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N'}

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mongodb
Published
Updated
Aug 11, 2026, 8:25 PM
Reserved
Aug 3, 2026, 3:53 PM
Status
Analyzed
Published
Aug 11, 2026, 7:17 PM
Modified
Oct 23, 2026, 9:10 PM