Datasource credentials exposed via missing authorization in application import
Description
A user with the App Viewer role can read datasource configuration for applications they can view without having permission to read the datasource itself. This affects self-hosted Appsmith Community and Enterprise installations on all deployment types when a workspace contains a private application connected to a datasource.
Impact
The user can obtain sensitive datasource configuration, including internal service addresses, authentication headers, API keys, and connection metadata. This can expose credentials and details about services reachable from the Appsmith installation. The user must already be a member of the affected workspace with App Viewer access.
Affected and patched versions
Appsmith versions up to and including 1.99 are affected. Upgrade to 2.0 or later.
Workarounds
Until the installation is upgraded, limit App Viewer membership to trusted users in workspaces that contain sensitive datasource configuration.
After upgrading
Rotate datasource credentials that may have been exposed, and review workspace membership and access logs for unexpected access.
Credits
Thanks to @narco0827 for reporting this issue.