CVE-2026-13078 Local File Disclosure in MongoDB Server via MozJS Scripting Engine Module Loader

Medium 6.3 Published Updated

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.

PackageAffectedFixed in
mongodb BitnamiFrom 7.0.07.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.

All Mongodb Mongodb vulnerabilities

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.

Is CVE-2026-13078 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free