CVE-2026-13078 Local File Disclosure in MongoDB Server via MozJS Scripting Engine Module Loader
An authenticated user can read arbitrary files from the host filesystem via the MozJS scripting engine in MongoDB Server.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-13078?
CVE-2026-13078 is a medium-severity path traversal vulnerability in Mongodb Mongodb, published on 22 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-862
Which versions are affected by CVE-2026-13078?
1 open source package ship an affected version, including mongodb. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mongodb Bitnami | From 7.0.0 | 7.0.39, 8.0.28, 8.2.12, 8.3.7 |
Products include Mongodb Mongodb.
How do I fix CVE-2026-13078?
Upgrade mongodb to a fixed version for your release line: 7.0.39, 8.0.28, 8.2.12 or 8.3.7.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-13078 being exploited?
There is no known exploitation of CVE-2026-13078 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Mongodb Mongodb
- CVE-2025-14847 MongoDB and MongoDB Server Improper Handling of Length Parameter Inconsistency
- CVE-2026-82067 Auth bypass in MongoDB Server
- CVE-2026-13072 MongoDB Improper Input Validation in Compute Mode External Data Processing Leading to Memory Corruption
- CVE-2017-15535 Denial of service in n/a
- CVE-2026-18691 Improper Authentication in MongoDB Intra-Cluster Connections Allows Credential Exposure
Sources
Also known as BIT-mongodb-2026-13078, GHSA-fpx3-f8x9-6hqm, MINI-j8g7-4jww-v9qx, MINI-qgq4-p4vm-738x, MINI-rhr2-4p72-958w, MINI-vg8w-g4gf-w296 and 1 more.