CVE-2026-13078
Received Received - Intake

MongoDB Server JavaScript Arbitrary File Read Vulnerability

Vulnerability report for CVE-2026-13078, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-22

Last updated on: 2026-07-22

Assigner: MongoDB, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-22
Last Modified
2026-07-22
Generated
2026-07-23
AI Q&A
2026-07-22
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
mongodb mongodb_server *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-862 The product does not perform an authorization check when an actor attempts to access a resource or perform an action.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in MongoDB Server involves the server-side MozJS scripting engine registering a module loading hook that allows JavaScript calls to read arbitrary files from the host filesystem using the mongod process's privileges. An authenticated user can exploit this by sending crafted aggregation pipeline commands to read sensitive files accessible to the MongoDB server process.

Detection Guidance

Detecting this vulnerability requires checking for unauthorized file access attempts by the MongoDB server. Monitor logs for suspicious aggregation pipeline commands or JavaScript execution. Look for errors indicating file read operations in mongod logs. Use commands like grep to search for 'readFile' or 'load' in MongoDB logs. Ensure no unexpected modules are loaded via the scripting engine.

Impact Analysis

An attacker with authenticated access could exploit this to read sensitive files on the server, potentially exposing confidential data such as configuration files, user credentials, or other restricted information. This could lead to further attacks or data breaches depending on the accessed files.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data, violating compliance requirements under GDPR (data protection) and HIPAA (health information privacy). Organizations may face legal penalties, reputational damage, and loss of trust due to data exposure resulting from this flaw.

Mitigation Strategies

Immediately upgrade MongoDB to the latest patched version. Disable the server-side JavaScript engine if not required by setting 'javascriptEnabled=false' in the configuration. Restrict network access to MongoDB ports using firewalls. Review and audit user permissions to ensure least privilege access. Monitor for any signs of exploitation in logs.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-13078. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart