CVE-2026-18708: MongoDB Server - Stored XSS
- Cve: CVE-2026-18708
- Name: MongoDB Server - Stored XSS
- 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.
- Impact: Authenticated users with write privileges can execute code in other users' query scope, causing query corruption and denial of service within the scripting sandbox.
- Remediation: Update to the latest MongoDB Server version.
- Vulnerability type: stored_xss
- Vulnerability impact: denial_of_service, data_tampering
- Requirement type: logged_in
- Requirements: Attacker must be authenticated with write privileges
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.4
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L
- Epss score: 0.00394
- Epss percentile: 0.34378
- Assignee: [email protected]
- Published at: 2026-08-11T19:17:25Z
- Age in days: 105
- Modified at: 2026-09-16T15:19:39Z
- Patch available: yes
- References total: 1
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-18708
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
Hackerone
- Reports: 1
- Rank: 1631
References
| Url | Source | Tags |
|---|---|---|
| https://jira.mongodb.org/browse/SERVER-130167 | nvd | Vendor Advisory, Issue Tracking |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| mongodb:mongodb | = 9.1.0 alpha0; = 9.0.0 alpha0; = 9.0.0 alpha1; >= 8.3.0, < 8.3.8; >= 8.2.0, <= 8.2.12; >= 8.0.0, < 8.0.29; >= 7.0.0, < 7.0.40 | no | nvd | /v1/products/mongodb/mongodb |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Hackerone reports: 1
- Exposed hosts: 159883
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since