Local File Disclosure in MongoDB Server via MozJS Scripting Engine Module Loader (MongoDB MongoDB Server)

CVE-2026-13078
MEDIUM 6.3

At a glance

Source
NVD
EPSS
EPSS 0.38 % · percentile 32 ()
State
PUBLISHED
Published
Updated
Assigner
mongodb
NVD status
Analyzed

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.

Weaknesses (CWE)

  • CWE-862 — Missing Authorization

References

Scores

VersionScoreVectorScored by
CVSS 4.0MEDIUM 6.3CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:Nmongodb
CVSS 3.1HIGH 7.7CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:Nmongodb
CVSS 4.0MEDIUM 6.3CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XNVD · cna@mongodb.com (Secondary)
CVSS 3.1HIGH 7.7CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:NNVD · cna@mongodb.com (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
MongoDB · MongoDB Serveraffected 7.0 < 7.0.39 ; affected 8.0 < 8.0.28 ; affected 8.2.0 < 8.2.12 ; affected 8.3.0 < 8.3.7

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD