Answer accepted by question author
Hello @Dani_S ,
For most of your questions about MongoDB Server, youβll get the best support by asking in the MongoDB community. Although technical questions are no longer supported on the official forum, you can post your questions on their recognized forums such as Stack Overflow and Reddit.
While these are non-Microsoft websites, they are the official community forums for MongoDB.
That said, I can answer a couple of your questions related to how this affects your MAUI app:
- The standard MongoDB Windows MSI installer does not install side by side. It performs an in-place upgrade, replacing the old versionβs binaries with the new version. Your data directory remains in the same location.
- Your MAUI app will connect to whichever MongoDB server is running based on your connection string. The connection string in your MAUI app (usually something like
mongodb://localhost:27017/yourDatabase) points to a specific host and port. Whichever MongoDB service is running on that host/port is what your app will use. - If you need more control or want to run multiple versions simultaneously, you would need to manually install MongoDB in different directories and configure them to use different ports. However, thatβs not the standard approach and adds unnecessary complexity.
I hope this clarifies things, and Happy New Year.
-
Dani_S 5,581 Reputation points
Hi Michel,
Thank you very much for your help.
Please look on this documents which upgrade my server and client to the recommended
versions: Upgarde Mongo.docx
Can you please help me , how to run the commands in documents ,is not running in command line as admin, not recognized the commands both of server and clients tools.
Maybe need to run it from mongo folder ? if yes how ?
Your quick answer will be helpful.
Thanks you very much.
-
Dani_S 5,581 Reputation points
Please also see:
-
Michael Le (WICLOUD CORPORATION) 11,330 Reputation points β’ Microsoft External Staff β’ Moderator
I recommend checking if mongosh is installed on your system. You can either:
- Find where mongosh is installed (if itβs installed at all)
- Install mongosh separately if you donβt have it yet
For more details, the MongoDB documentation covers this topic. You can check out Install mongosh and Run commands.
While these are non-Microsoft links, they are official MongoDB documentation pages.
-
Dani_S 5,581 Reputation points
Hi Michel,
Thank you very much for your help it was very helpful.
Suumarize:
Problem:
Whatβs the Risk Right Now? (CVE-2025-14847)
Thereβs a high-severity security flaw in the MongoDB Server zlib compression component that can allow an unauthenticated attacker with network access to your database port to leak memory contents (potentially including credentials, session tokens, and config data)
Effects:
Affected versions include:
- MongoDB 7.0.0 β 7.0.26 (our current version 7.0.3 is vulnerable)
- and many others older than the patched releases.
Solution Options:
1. Since we are on MongoDB 7.0.3, the minimum safe upgrade to fix CVE-2025-14847 is: MongoDB 7.0.28 or later (patch release in the 7.0 branch) π
2. Upgrade to MongoDB 8.0.17 or 8.2.3
(newer supported branches with newer features.
Decision
1. Since our app does not support the new features of 8.0.17 or 8.2.3
we will upgrade to MongoDB 7.0.3 this time.
2. Since we have also for client isolated compass as separated installation, we need to update it to version 1.48.2 also because of 1.
3.Files:
Before:
Server: mongodb-windows-x86_64-7.0.3-signed.msi
Client: mongodb-compass-isolated-1.42.2-win32-x64.msi
After:
Server:
File name: mongodb-windows-x86_64-7.0.28-signed.msi
Link to download: Download MongoDB 7.0.28 (Windows MSI installer) π https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-7.0.28-signed.msi
Client:
File name:mongodb-compass-isolated-1.48.2-win32-x64.msi
Link to download: Download Latest Stable Isolated Edition (1.48.2)
πDownload the Windows MSI (Isolated Edition) from the official GitHub releases:https://github.com/mongodb-js/compass/releases/download/v1.48.2/mongodb-compass-isolated-1.48.2-win32-x64.msi
4.Backup
- Install mongodb-database-tools-windows-x86_64-100.14.0.msi for Windows from:
π MongoDB Command Lune Database Tools Download
Β· 2.Add this path C:\Program Files\MongoDB\Tools\100\bin to Environment
Variables.
- Create MongoDB folder on your desktop. Open this folder and press on the path cmd, the Command Prompt will be open.
Run this command in Command Prompt: mongodump
β This creates a full backup.
β If anything goes wrong, you can restore easily. β The full backup.β The data collections are located in AutomationManager folder.
Each collection contains from collection_name_matadata.json and
collection_name.bson(data itself).
Both files can be opened in Notepad editor and see the data.
5.Restore
1.Open the MongoDB client(compass isolated)
and delete the infected DB - in our case AutomationManager DB.
2.Run this command in Command Prompt: mongorestore.
and my AutomationManager DB is restore.
**My question how **mongorestore know how to restore the AutomationManager DB? Does it used dump back folder ?
Please see this video :
https://www.youtube.com/watch?v=qcGYBsdOc8I
Thanks in advance,
-
Michael Le (WICLOUD CORPORATION) 11,330 Reputation points β’ Microsoft External Staff β’ Moderator
Glad to hear you managed to resolve the issue. Regarding your questions about how
mongorestoreworks, please see https://www.mongodb.com/docs/database-tools/mongorestore/ for more details.While this is a non-Microsoft link, it is the official documentation for MongoDB.
In your case, when running
mongorestore:- By default, it looks for a folder named
dumpin your current directory. - It reads all the database folders inside
dump. - It finds the
AutomationManagerfolder and restores all the.bsonfiles and.jsonmetadata files inside it.
- By default, it looks for a folder named
