Skip to content

kiliczsh/mcp-mongo-server

v2.1.1 Security

This release includes 1 security fix for security teams reviewing exposed deployments.

Published 5d MCP Data & Storage
✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →
This release patches 1 known CVE

Topics

antrophic claude claude-desktop cline cursor mcp
+3 more
model-context-protocol mongodb windsurf

Affected surfaces

auth breaking_upgrade

Summary

AI summary

Fixes a read‑only mode bypass allowing writes via aggregation pipelines

Full changelog

Security fix

Fixes a read-only mode bypass in the aggregate tool. When the server was started with --read-only (or MCP_MONGODB_READONLY=true), an aggregation pipeline containing $out or $merge could still write to or replace collections, bypassing the read-only protection. Server-side JavaScript operators ($function, $accumulator, $where) are now rejected in read-only mode as well.

Affected: all versions up to and including 2.1.0 when run in read-only mode.
Fixed: aggregation pipelines are now recursively checked and these operators are rejected under read-only mode. Normal (writable) mode is unchanged.

For defense in depth, we also recommend enforcing read-only access at the database level with a read-only MongoDB user.

Full Changelog: https://github.com/kiliczsh/mcp-mongo-server/compare/2.1.0...2.1.1

Security Fixes

  • Fixes bypass of --read-only/MCP_MONGODB_READONLY where aggregation pipelines with $out, $merge and JS operators ($function,$accumulator,$where) could still write data

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track kiliczsh/mcp-mongo-server

Get notified when new releases ship.

Sign up free

About kiliczsh/mcp-mongo-server

A Model Context Protocol Server for MongoDB

All releases →

Beta — feedback welcome: [email protected]