Security mailing lists by PureSourceCode

CVE-2025-1691

MEDIUM 6.5CVSS 3.1

MongoDB Shell may be susceptible to Control Character Injection via autocomplete

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. 

The vulnerability is exploitable only when mongosh is connected to a cluster that is partially or fully controlled by an attacker.

Published
27 Feb 2025
Last modified
17 Jun 2026
Assigned by
cna@mongodb.com
NVD status
Analyzed
Weakness
CWE-74
Also known as
GHSA-43g5-2wr2-q7vj
Sources
NVDJSONOSV GHSA-43g5-2wr2-q7vjJSON

Scores

SourceScored byVersionScoreVector / decision
NVD cna@mongodb.com (Secondary) CVSS 3.1 HIGH 7.6 CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H
OSV GitHub CVSS 3.1 HIGH 7.6 CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD mongodb mongosh
cpe:2.3:a:mongodb:mongosh:*:*:*:*:*:*:*:*
< 2.3.9 2.3.9
OSV npm mongosh < 2.3.9 2.3.9

References

History

  • 25 Nov 2026 20:57 UTC · NVD: first stored (published 27 Feb 2025)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 27 Feb 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.