# CVE-2026-18708: Improper Neutralization of Input in MongoDB Server's JavaScript Scripting Engine Leads to Unauthorized Code Execution Within Query Scopes

- Severity: Medium 5.3 (CVSS:4.0, scored by mongodb) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N`
- 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.39%, higher than 25% of CVEs (2026-11-30)
- Published: 2026-08-11T18:41:10.323Z
- Modified: 2026-10-01T10:00:11.382Z
- Also known as: BIT-MONGODB-2026-18708
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mongodb

## Description

An issue in MongoDB Server's JavaScript scripting engine could allow an authenticated user with write privileges to cause code they control to be executed within the query scope of other users, through a specially crafted stored value processed during an internal maintenance cycle. This could result in corruption of query results affecting other users and denial of service targeted at their operations on the same database. Impact is limited to the scripting engine's execution sandbox, which does not provide access to database, filesystem, or network resources.

(As written by CVE List.)

## Affected

- MongoDB MongoDB Server: from 8.3.0 before 8.3.8; from 8.0 before 8.0.29; from 7.0 before 7.0.40
- mongodb mongodb: from 7.0.0 before 7.0.40; from 8.0.0 before 8.0.29; from 8.2.0 up to 8.2.12; from 8.3.0 before 8.3.8; 9.0.0; 9.1.0
- mongodb (Bitnami): from 7.0.0 before 7.0.40; from 8.0.0 before 8.0.29; from 8.2.0 before 8.3.8; from 9.0.0 before 9.0.2

## Every score

- mongodb: CVSS:4.0 5.3 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N`
- mongodb: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L`
- Bitnami Vulnerability Database: rating Medium

## References

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

## Sources

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

---

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