Vulnerability library
Security checkFebruary 27, 2025

ejson shell parser in MongoDB Compass maybe bypassed

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of ejson shell parser in Compass’ connection handling. This issue affects MongoDB Compass versions prior to version 1.42.2.

Recommendation

Update the @mongodb-js/connection-form package to the latest compatible version. Followings are version details:

  • Affected version(s): < 1.20.1
  • Patched version(s): 1.20.1

References

Could your website be exposed too?

SmartScanner can check your website for ejson shell parser in MongoDB Compass maybe bypassed and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated February 27, 2025