Skip to content

v9.2.0

Latest

Choose a tag to compare

@furey furey released this 19 Nov 01:57
Immutable release. Only release title and notes can be modified.

Security

Versions 7.0.1 to 9.1.5 documented a "read-only" disabled.tools list that left aggregate-data enabled. An aggregation pipeline with a $out or $merge stage could still create or replace collections when the MongoDB user had write access. Advisory: GHSA-5v9w-pf6p-4j65. Thanks to @chrispham-cyber for the report.

Upgrade to 9.2.0. If you use the old README list, you need no config change: MongoDB Lens now rejects $out and $merge when insert-document, update-document, or delete-document is disabled.

For a guarantee that MongoDB Lens cannot change your data, connect as a MongoDB user with the read role.

New

  • readOnly setting (CONFIG_READ_ONLY=true). MongoDB Lens registers only read tools, rejects $out and $merge stages, and does not change database profiler settings.
  • Startup prints Read-only mode: on when the setting is active.
  • The server instructions and the aggregate-data description tell the AI client which tools are available and that $out and $merge write data.

Changed startup behaviour

MongoDB Lens now exits with an error, instead of starting with default settings, when:

  • CONFIG_READ_ONLY is not true or false
  • the configuration file is not valid JSON
  • the configuration file has a misspelled readOnly key, such as readonly

$out and $merge stages are rejected when any of insert-document, update-document, or delete-document is disabled. To use these stages, keep those tools enabled and leave readOnly off.

Fixed

  • analyze-query-patterns now restores the previous profiler settings after an error.