# CVE-2026-8336: Post-authentication use-after-free error in $_internalJsEmit and mapreduce commands

- Severity: High 7.7 (CVSS:4.0, scored by mongodb) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2026-05-13T00:16:16.568Z
- Modified: 2026-10-26T18:10:00.173Z
- Also known as: BIT-MONGODB-2026-8336
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mongodb

## Description

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.

This issue impacts MongoDB Server v8.2 versions prior to 8.2.9 and v8.3 versions prior to 8.3.2.

(As written by CVE List.)

## Affected

- MongoDB, Inc. MongoDB Server: from 8.2 before 8.2.9; from 8.3 before 8.3.2
- mongodb mongodb: from 8.2.0 before 8.2.9; from 8.3.0 before 8.3.2
- mongodb (Bitnami): from 8.2.0 before 8.2.9; from 8.3.0 before 8.3.2

## Every score

- mongodb: CVSS:4.0 7.7 High `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`
- mongodb: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://jira.mongodb.org/browse/SERVER-121610> (advisory, issue-tracking, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-8336> (web)

## Sources

- CVE List: [CVE-2026-8336](https://www.cve.org/CVERecord?id=CVE-2026-8336), CVE Terms of Use, modified 2026-05-15
- NVD: [CVE-2026-8336](https://nvd.nist.gov/vuln/detail/CVE-2026-8336), Public domain, modified 2026-10-26
- Bitnami Vulnerability Database: [BIT-MONGODB-2026-8336](https://osv.dev/vulnerability/BIT-MONGODB-2026-8336), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-8336 · Whole record: https://cve.day/CVE-2026-8336.json · Rebuilt by cve.day 2026-11-25T22:59:21.523Z
