{"id":"CVE-2026-8336","summary":"Post-authentication use-after-free error in $_internalJsEmit and mapreduce commands","details":"After invoking $_internalJsEmit, which is not intended to be directly accessible, or mapreduce command’s map function in a certain way, an authenticated user can subsequently crash mongod when the server-side JavaScript engine (through $where, $function, mapreduce reduce stage, etc.) is used also in a specific way, resulting in a post-authentication denial-of-service.\n\nThis issue impacts MongoDB Server v8.2 versions prior to 8.2.9 and v8.3 versions prior to 8.3.2.","aliases":["BIT-mongodb-2026-8336"],"modified":"2026-07-08T08:13:52.767217748Z","published":"2026-05-13T00:16:16.568Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/8xxx/CVE-2026-8336.json","unresolved_ranges":[{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"8.2"},{"fixed":"8.2.9"},{"introduced":"8.3"},{"fixed":"8.3.2"}]}],"cwe_ids":["CWE-416"],"cna_assigner":"mongodb"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/8xxx/CVE-2026-8336.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-8336"},{"type":"REPORT","url":"https://jira.mongodb.org/browse/SERVER-121610"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mongodb/mongo","events":[{"introduced":"b993867dce63dd366cd93e60f3f425ed716f6497"},{"fixed":"551096db8ad4a951af553de51c5485d5fd91d40d"},{"introduced":"0f29b043a58fdd251ce0a0b32754b8459613c933"},{"fixed":"c531abff36f228c5ff24735ddf31a23536716ab0"}],"database_specific":{"cpe":"cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*","source":"CPE_RANGE","extracted_events":[{"introduced":"8.2.0"},{"fixed":"8.2.9"},{"introduced":"8.3.0"},{"fixed":"8.3.2"}]}}],"versions":["r8.3.0","r8.3.1","r8.2.4-alpha1","r8.2.4-alpha0","r8.2.3-alpha0","r8.2.2-rc0","r8.2.2","r8.2.1-rc1","r8.2.1","r8.2.1-rc0","r8.2.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-8336.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/AU:N/R:A/V:D/RE:M/U:Red"}]}