Skip to main content
Menu
Advisories

Cross-site scripting via CSS tokens in custom widgets

GHSA-FRQC-9X9H-FV9VPublished Updated GitHub

Description

A workspace member who can modify a custom widget can cause untrusted CSS token content to be interpreted as HTML in another user's browser. This can result in cross-site scripting when the affected custom widget is loaded. Self-hosted Appsmith Community and Enterprise installations are affected when an application contains a custom widget whose content can be modified by an untrusted workspace member; a new installation without such an application is not exposed by default.

Impact

Code can run in the browser with the permissions of a user who opens an application containing the affected custom widget. The attacker can act through the victim's Appsmith session, read information available to the victim, or alter the application's interface. Exploitation requires permission to modify the affected application or its custom widget content and another user to load it.

Affected and patched versions

Appsmith versions up to and including 2.1 are affected. Upgrade to 2.2 or later.

Workarounds

Until upgrading, restrict application editing and custom widget configuration to trusted workspace members. Remove or disable custom widgets in applications that untrusted members can modify.

After upgrading

Review affected applications for unexpected custom widget changes and revoke active sessions if an untrusted member could have modified a custom widget.

Credits

Thanks to Omkar Parkhe (@omkarparth) for reporting this issue.

Affected versions

References

GitHub · appsmithorg/appsmith