GHSL-2026-059: SQL Injection in Chatwoot
The Chatwoot FilterService directly interpolates user-supplied filter values into SQL fragments without sanitisation, allowing an authenticated agent to inject SQL. This could let an attacker read conversations and contacts from other accounts and extract sensitive data via blind SQL injection.
The Chatwoot project version v4.11.0 contains a SQL Injection vulnerability (GHSL-2026-059) in the FilterService component, specifically within the ltgtfiltervalues function, allowing attackers to manipulate database queries and potentially access sensitive data.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the filter value is concatenated into a SQL string instead of being passed as a bind parameter, so the database treats part of the input as SQL syntax.
Impact
An authenticated agent could access conversations and contacts from other accounts, extract sensitive data via blind SQL injection, and bypass inbox-level permission restrictions.
What the attacker needed
Authenticated agent account
How it was found
- Authenticate as an agent and send a filter request to the conversations filter endpoint.
- Include a crafted value in the filter's values array that closes the string and adds an OR condition.
- The server builds a WHERE clause with the injected SQL and executes it, returning conversations across all accounts.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
SQL injection is when user input is placed directly into a database query, so an attacker can change the query's meaning. Here, a filter value is inserted into the SQL text without being treated as data, so a crafted value can add extra conditions. An authenticated user could then see data from other accounts or read secrets from the database.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.