CVE-2026-13078: A vulnerability was discovered in MongoDB Server where the server-side MozJS scripting engine unconditionally
CVE-2026-13078 is a high-severity flaw (CVSS 7.7) affecting mongodb. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.7 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.4% (top 70%) |
| CISA exploited list | No |
| Weakness | CWE-862 |
| Published | 2026-07-22 |
| Last modified | 2026-10-24 |
Last updated 2026-10-24 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: 0xad3m/CVE-2026-13078-POC (3 stars)
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-13078?
mongodb: upgrade to 7.0.39, 8.0.28, 8.2.12, 8.3.7. Exact commands for each OS are on this page.
Is CVE-2026-13078 being exploited?
CVE-2026-13078 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-13078 affect?
CVE-2026-13078 affects mongodb. Severity is high (CVSS 7.7). 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 p
How urgent is CVE-2026-13078?
Priority 35/100. High severity
Software pages
Related CVEs
- CVE-2026-13072 HIGH 8.1 UPGRADE When compute mode is enabled on a standalone mongod instance, insufficient validation of externally sourced BS
- CVE-2026-13059 HIGH 8.1 UPGRADE An authenticated user with low privileges may be able to perform unauthorized reads and writes on data protect
- CVE-2026-13077 HIGH 7.1 UPGRADE A missing bounds check in the BSON CodeWScope element accessors allows an attacker to trigger an out-of-bounds
- CVE-2026-13065 MEDIUM 6.5 UPGRADE A user with read-only privileges is able to craft an aggregation pipeline using the $linearFill window functio
- CVE-2026-13074 MEDIUM 5.3 UPGRADE An unauthenticated remote client can cause excessive CPU consumption on a MongoDB server by sending a specific