CVE-2026-73069: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in twentyhq twenty
Twenty is an open-source CRM (customer relationship management) platform. Prior to 2.15.0, Twenty allowed a workspace administrator with the DATA_MODEL permission to supply settings.asExpression for the system TS_VECTOR field searchVector through PATCH /rest/metadata/fields/:id or the updateOneField GraphQL mutation, causing buildSqlColumnDefinition in packages/twenty-server/src/engine/twenty-orm/workspace-schema-manager/utils/build-sql-column-definition.util.ts to concatenate unescaped input into GENERATED ALWAYS AS (...) and execute arbitrary PostgreSQL statements as the application database user. This issue is fixed in version 2.15.0.
AI Analysis
Technical Summary
Twenty versions prior to 2.15.0 contain an SQL injection vulnerability (CWE-89) in the handling of the system TS_VECTOR field searchVector. A workspace administrator with DATA_MODEL permission could supply settings.asExpression via PATCH /rest/metadata/fields/:id or the updateOneField GraphQL mutation. The vulnerable function buildSqlColumnDefinition concatenates this unescaped input into a GENERATED ALWAYS AS (...) SQL expression, enabling execution of arbitrary PostgreSQL commands as the database user. This flaw is resolved in version 2.15.0.
Potential Impact
Successful exploitation allows a privileged workspace administrator to execute arbitrary SQL commands on the PostgreSQL database with the application's database user privileges. This can lead to complete compromise of the database confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade to Twenty version 2.15.0 or later, where this vulnerability is fixed. No other mitigation or workaround is indicated by the available data.
CVE-2026-73069: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in twentyhq twenty
Description
Twenty is an open-source CRM (customer relationship management) platform. Prior to 2.15.0, Twenty allowed a workspace administrator with the DATA_MODEL permission to supply settings.asExpression for the system TS_VECTOR field searchVector through PATCH /rest/metadata/fields/:id or the updateOneField GraphQL mutation, causing buildSqlColumnDefinition in packages/twenty-server/src/engine/twenty-orm/workspace-schema-manager/utils/build-sql-column-definition.util.ts to concatenate unescaped input into GENERATED ALWAYS AS (...) and execute arbitrary PostgreSQL statements as the application database user. This issue is fixed in version 2.15.0.
CVSS v3.1
Score 9.1critical
Affected software
twentyhq
twenty
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Twenty versions prior to 2.15.0 contain an SQL injection vulnerability (CWE-89) in the handling of the system TS_VECTOR field searchVector. A workspace administrator with DATA_MODEL permission could supply settings.asExpression via PATCH /rest/metadata/fields/:id or the updateOneField GraphQL mutation. The vulnerable function buildSqlColumnDefinition concatenates this unescaped input into a GENERATED ALWAYS AS (...) SQL expression, enabling execution of arbitrary PostgreSQL commands as the database user. This flaw is resolved in version 2.15.0.
Potential Impact
Successful exploitation allows a privileged workspace administrator to execute arbitrary SQL commands on the PostgreSQL database with the application's database user privileges. This can lead to complete compromise of the database confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade to Twenty version 2.15.0 or later, where this vulnerability is fixed. No other mitigation or workaround is indicated by the available data.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-10T19:37:41.444Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a7b42ccbf8831d539f89e71
Added to database: 08/11/2026, 15:42:04 UTC
Last enriched: 08/11/2026, 15:56:09 UTC
Last updated: 09/24/2026, 16:27:03 UTC
Views: 57
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.