{"id":"CVE-2025-1691","published":"2025-02-27T12:34:02Z","modified":"2025-02-27T15:18:23Z","title":"MongoDB Shell may be susceptible to Control Character Injection via autocomplete","vendor":"MongoDB Inc","product":"mongosh","tier":"tail","description":{"text":"The MongoDB Shell may be susceptible to control character injection where an attacker with control of the mongosh autocomplete feature, can use the autocompletion feature to input and run obfuscated malicious text. This requires user interaction in the form of the user using ‘tab’ to autocomplete text that is a prefix of the attacker’s prepared autocompletion. This issue affects mongosh versions prior to 2.3.9. \n\n\nThe vulnerability is exploitable only when mongosh is connected to a cluster that is partially or fully controlled by an attacker.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00356,"percentile":0.30096,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://jira.mongodb.org/browse/MONGOSH-2024","tags":[]}],"priority":{"score":11.3,"factors":[{"name":"EPSS percentile","points":6.02},{"name":"CVSS severity","points":5.32}]},"vendorSlug":"mongodb","affectedVersions":[{"vendor":"MongoDB Inc","product":"mongosh","versions":["< 2.3.9"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-02-27T14:33:04.403717Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"mongosh","vulnerableRanges":["<2.3.9"],"patched":["2.3.9"],"from":["GHSA-43g5-2wr2-q7vj"],"provenance":"source"}],"summary":{"text":"The MongoDB Shell (mongosh) is vulnerable to control character injection through its autocomplete feature, where an attacker controlling the connected cluster can prepare autocompletion text that hides malicious input. An attacker who controls a cluster that a user connects mongosh to can cause obfuscated malicious text to run in the shell, but this requires the user to press Tab to autocomplete a prefix matching the attacker's prepared completion, and it is only exploitable when mongosh is connected to a cluster that is partially or fully attacker-controlled.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:54:35Z"},"euvd":{"id":"EUVD-2025-5466","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-1756","published":"2025-02-27","fixed":"2.3.0","kev":false,"link":{"from":"CVE-2025-1756","to":"CVE-2025-1691","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:mongosh","fromFixed":"2.3.0","toFixed":"2.3.9","daysApart":0}]}},{"cve":"CVE-2025-1691","published":"2025-02-27","fixed":"2.3.9","kev":false},{"cve":"CVE-2025-1692","published":"2025-02-27","fixed":"2.3.9","kev":false},{"cve":"CVE-2025-1693","published":"2025-02-27","fixed":"2.3.9","kev":false}],"package":"npm:mongosh"}}