What’s Vulnerable › Vulnerabilities

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

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.

Affected products

How to fix

Upgrade to a fixed version: MongoDB 7.0.39, 8.0.28, 8.2.12, 8.3.7. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-13078 or the next vulnerability affects your stack