MongoDB Server
Local File Disclosure in MongoDB Server via MozJS Scripting Engine Module Loader
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 7.0, < 7.0.39
- >= 8.0, < 8.0.28
- >= 8.2.0, < 8.2.12
- >= 8.3.0, < 8.3.7
Fixed in 7.0.39, 8.0.28, 8.2.12, 8.3.7
Mitigation
Upgrade MongoDB Server to 7.0.39 or 8.0.28 or 8.2.12 or 8.3.7 or later.
Timeline
Days relative to CVE publicationFirst public PoC 82 days after publication; not in CISA KEV. First PoC: 0xad3m/CVE-2026-13078-POC (created 12 Oct 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| 0xad3m/CVE-2026-13078-POC | 12 Oct 2026 +82 d | 3 | PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.