npmWorst: High4 advisories

mongosh: known vulnerabilities

mongosh has 4 reviewed security advisories in the GitHub Advisory Database — 2 high, 1 moderate, 1 low. The most recent was published 2025-02-27. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the mongosh versions running across your servers, containers and images, and ranks what to patch first.

How to fix mongosh

Upgrade mongosh to a release at or above the fixed version shown for each advisory below. For npm:

npm install mongosh@2.3.9 (or run npm audit fix)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (4)

MongoDB Shell may be susceptible to Control Character Injection via autocomplete High 7.6 CWE-74 — Affected: before 2.3.9. Fixed in 2.3.9. Published 2025-02-27. GHSA-43g5-2wr2-q7vj · CVE-2025-1691
MongoDB Shell may be susceptible to control character injection via pasting Moderate 6.3 CWE-150 — Affected: before 2.3.9. Fixed in 2.3.9. Published 2025-02-27. GHSA-973h-3x6p-qg37 · CVE-2025-1692
mongosh vulnerable to local privilege escalation High 7.5 CWE-426 — Affected: before 2.3.0. Fixed in 2.3.0. Published 2025-02-27. GHSA-f5w3-73h4-jpcm · CVE-2025-1756
MongoDB Shell may be susceptible to control character Injection via shell output Low 3.9 CWE-150 — Affected: before 2.3.9. Fixed in 2.3.9. Published 2025-02-27. GHSA-r95j-4jvf-mrrw · CVE-2025-1693

Find mongosh across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.