Skip to content

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

MediumCVSS 6.3 EPSS 0.38%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
MongoDB Server >= 7.0, < 7.0.39; >= 8.0, < 8.0.28; >= 8.2.0, < 8.2.12; >= 8.3.0, < 8.3.7 7.0.39, 8.0.28, 8.2.12, 8.3.7 Fixed
mongodb/mongodb >= 7.0.0, < 7.0.39; >= 8.0.0, < 8.0.28; >= 8.2.0, < 8.2.12; >= 8.3.0, < 8.3.7 7.0.39, 8.0.28, 8.2.12, 8.3.7 Fixed

Affected products

ProductAffected versionsFixed in
MongoDB Server >= 7.0, < 7.0.39 7.0.39
MongoDB Server >= 8.0, < 8.0.28 8.0.28
MongoDB Server >= 8.2.0, < 8.2.12 8.2.12
MongoDB Server >= 8.3.0, < 8.3.7 8.3.7
mongodb/mongodb >= 7.0.0, < 7.0.39 7.0.39
mongodb/mongodb >= 8.0.0, < 8.0.28 8.0.28
mongodb/mongodb >= 8.2.0, < 8.2.12 8.2.12
mongodb/mongodb >= 8.3.0, < 8.3.7 8.3.7

References