Skip to main content
Menu
Advisories

MongoDB root credentials exposed via the admin environment settings endpoint

GHSA-RF99-RC2W-VH94Published Updated GitHub

Description

An instance administrator viewing the environment settings in the admin panel on Appsmith Community Edition can see the full MongoDB and Redis connection strings, including embedded credentials, in plaintext. The exposed MongoDB account has full write access to the database. This affects self-hosted Community and Enterprise deployments where the database or cache uses connection-string credentials.

Impact

An instance admin (or anyone able to read that admin response) obtains a MongoDB credential with full read/write access to every collection, including user accounts, datasource secrets, and application data. The Redis connection string is exposed in the same way.

Affected and patched versions

Appsmith versions up to and including 2.3 are affected. Upgrade to 2.4 or later, where the admin settings endpoint masks secret-bearing values.

Workarounds

Restrict who holds the instance admin role, since only that role can read the affected endpoint.

After upgrading

Rotate the MongoDB and Redis credentials if an instance admin account may have been compromised or shared before upgrading.

Credits

Thanks to @davidkm-ai for reporting this issue.

Affected versions

References

GitHub · appsmithorg/appsmith