Description
A vulnerability was discovered in MongoDB Server where the server-side MozJS scripting engine unconditionally registered a module loading hook that enables JavaScript calls to read arbitrary files from the host filesystem using the mongod process's privileges. An authenticated user could exploit this through crafted aggregation pipeline commands to read sensitive files accessible to the MongoDB server process.
Published: 2026-07-22
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in the server-side MozJS scripting engine of MongoDB Server, where a module loading hook is registered without validation, allowing JavaScript code to read any file accessible to the mongod process. This flaw provides an authenticated attacker the ability to execute crafted aggregation pipelines that expose sensitive files, thereby compromising confidentiality of data that should be protected by the operating system and MongoDB permissions. The weakness is a classic example of an improper authorization defect (CWE-862).

Affected Systems

MongoDB Server is affected. The vendor/product list indicates that all versions of MongoDB Server that include the MozJS engine may be vulnerable; no specific version range is supplied by the CNA, so the exact scope is unknown and should be inspected against your deployment.

Risk and Exploitability

The CVSS score of 6.3 indicates a moderate severity. The EPSS score of <1% indicates a low probability of exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog, suggesting it is not actively exploited. The probable attack vector is via an authenticated user who can manipulate the aggregation pipeline to trigger the module loader. Because the attack requires authentication, an attacker would need valid MongoDB credentials and the ability to craft aggregation commands, which are typically restricted to privileged users.

Generated by OpenCVE AI on August 3, 2026 at 23:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Limit or remove aggregation pipeline permissions for user accounts that do not require them, ensuring that only trusted users can execute aggregation commands.
  • Configure file system permissions to prevent MongoDB from accessing sensitive host files, reinforcing the principle of least privilege for the mongod process.
  • If possible, disable the MozJS engine or the module loading hook in the server configuration to eliminate the attack surface until an official patch becomes available.

Generated by OpenCVE AI on August 3, 2026 at 23:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 24 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 23 Jul 2026 08:45:00 +0000

Type Values Removed Values Added
First Time appeared Mongodb
Mongodb mongodb Server
Vendors & Products Mongodb
Mongodb mongodb Server

Wed, 22 Jul 2026 20:00:00 +0000

Type Values Removed Values Added
Description A vulnerability was discovered in MongoDB Server where the server-side MozJS scripting engine unconditionally registered a module loading hook that enables JavaScript calls to read arbitrary files from the host filesystem using the mongod process's privileges. An authenticated user could exploit this through crafted aggregation pipeline commands to read sensitive files accessible to the MongoDB server process.
Title Local File Disclosure in MongoDB Server via MozJS Scripting Engine Module Loader
Weaknesses CWE-862
References
Metrics cvssV3_1

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

cvssV4_0

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


Subscriptions

Mongodb Mongodb Server
cve-icon MITRE

Status: PUBLISHED

Assigner: mongodb

Published:

Updated: 2026-07-23T14:18:44.825Z

Reserved: 2026-06-23T18:00:23.432Z

Link: CVE-2026-13078

cve-icon Vulnrichment

Updated: 2026-07-23T14:18:41.701Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-22T20:16:46.650

Modified: 2026-07-23T15:33:09.233

Link: CVE-2026-13078

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T23:30:17Z

Weaknesses