Security mailing lists by PureSourceCode

CVE-2025-1693

MEDIUM 6.8CVSS 3.1

MongoDB Shell may be susceptible to control character Injection via shell output

The MongoDB Shell may be susceptible to control character injection where an attacker with control over the database cluster contents can inject control characters into the shell output. This may result in the display of falsified messages that appear to originate from mongosh or the underlying operating system, potentially misleading users into executing unsafe actions.

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

This issue affects mongosh versions prior to 2.3.9

Published
27 Feb 2025
Last modified
17 Jun 2026
Assigned by
cna@mongodb.com
NVD status
Analyzed
Weakness
CWE-150
Also known as
GHSA-r95j-4jvf-mrrw
Sources
NVDJSONOSV GHSA-r95j-4jvf-mrrwJSON

Scores

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

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:11 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.