Local File Disclosure in MongoDB Server via MozJS Scripting Engine Module Loader (CVE-2026-13078)
MongoDB Server contains a vulnerability in its MozJS scripting engine module loader that allows authenticated users to read arbitrary files on the host filesystem. This occurs because the module loading hook is unconditionally registered, enabling JavaScript calls with the privileges of the mongod process to access sensitive files. The issue can be exploited through crafted aggregation pipeline commands. A patch is available to address this vulnerability.
AI Analysis
Technical Summary
CVE-2026-13078 is a local file disclosure vulnerability in MongoDB Server affecting the MozJS scripting engine module loader. The server-side MozJS engine unconditionally registers a module loading hook, which allows JavaScript code executed within the server context to read arbitrary files from the host filesystem with the privileges of the mongod process. An authenticated user can exploit this by sending specially crafted aggregation pipeline commands to the server, thereby accessing sensitive files accessible to the MongoDB server process. This vulnerability affects multiple MongoDB versions and has a moderate severity rating.
Potential Impact
An authenticated attacker can read arbitrary files on the host filesystem with the privileges of the MongoDB server process. This could lead to disclosure of sensitive information stored on the server, potentially impacting confidentiality. There is no indication of remote unauthenticated exploitation or privilege escalation beyond the mongod process privileges.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade affected MongoDB Server versions to the fixed releases to remediate the issue. Since this is not a cloud service, remediation requires applying the patch on self-managed deployments. No vendor advisory content contradicts this guidance.
Local File Disclosure in MongoDB Server via MozJS Scripting Engine Module Loader (CVE-2026-13078)
Description
MongoDB Server contains a vulnerability in its MozJS scripting engine module loader that allows authenticated users to read arbitrary files on the host filesystem. This occurs because the module loading hook is unconditionally registered, enabling JavaScript calls with the privileges of the mongod process to access sensitive files. The issue can be exploited through crafted aggregation pipeline commands. A patch is available to address this vulnerability.
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-13078 is a local file disclosure vulnerability in MongoDB Server affecting the MozJS scripting engine module loader. The server-side MozJS engine unconditionally registers a module loading hook, which allows JavaScript code executed within the server context to read arbitrary files from the host filesystem with the privileges of the mongod process. An authenticated user can exploit this by sending specially crafted aggregation pipeline commands to the server, thereby accessing sensitive files accessible to the MongoDB server process. This vulnerability affects multiple MongoDB versions and has a moderate severity rating.
Potential Impact
An authenticated attacker can read arbitrary files on the host filesystem with the privileges of the MongoDB server process. This could lead to disclosure of sensitive information stored on the server, potentially impacting confidentiality. There is no indication of remote unauthenticated exploitation or privilege escalation beyond the mongod process privileges.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade affected MongoDB Server versions to the fixed releases to remediate the issue. Since this is not a cloud service, remediation requires applying the patch on self-managed deployments. No vendor advisory content contradicts this guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-fpx3-f8x9-6hqm
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-13078"]
- Ecosystems
- []
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a6150da9c2644c7f8da1140
Added to database: 07/22/2026, 23:23:06 UTC
Last enriched: 08/19/2026, 16:04:43 UTC
Last updated: 09/05/2026, 10:52:07 UTC
Views: 145
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.