Executive brief
Appsmith, a platform for building internal business tools, contains a security vulnerability in its SQL query editor. An attacker with developer-level access can name a database table or column with malicious code. When other team members use the autocomplete feature in the editor, this code executes in their browser, potentially allowing the attacker to steal session information or take over the workspace.
Technical details
A stored cross-site scripting (XSS) vulnerability exists in Appsmith versions prior to 2.1. The vulnerability is located in the SQL autocomplete rendering logic within `hintHelpers.ts`, where the application overrides CodeMirror's default safe rendering with a custom callback that uses `innerHTML` to display database metadata. An authenticated attacker with 'Developer' privileges can create a database object (table or column) containing a JavaScript payload. When another user triggers the autocomplete dropdown for that datasource, the payload is rendered as raw HTML and executed in the context of the victim's session. This can lead to session hijacking or unauthorized API actions. The fix involves migrating the renderer to use `textContent` instead of `innerHTML`.
Affected products
- Appsmith Appsmith versions prior to 2.1
Timeline
- 2026-03-30: other: Initial discovery of the vulnerability
- 2026-04-24: patched: Fix committed to Appsmith repository
- 2026-06-02: disclosed: CVE-2026-7299 published
References
- https://github.com/Stuub/Appsmith-1.98-Stored-XSS-Exploit
- https://github.com/appsmithorg/appsmith/commit/99d69180919981ed9bc5484050d809a5bec68acc
- https://github.com/appsmithorg/appsmith/pull/41666
- https://github.com/appsmithorg/appsmith/releases/tag/v2.1
- https://github.com/appsmithorg/appsmith/security/advisories/GHSA-vvxf-f8q9-86gh
- https://www.kb.cert.org/vuls/id/265691