CVE-2026-73069

Twenty: SQL Injection in the `searchVector` Field Settings Allows Arbitrary PostgreSQL Execution

Published Aug 11, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Twenty, an open-source CRM, contains a critical SQL injection flaw in the searchVector field settings. By supplying unescaped input through PATCH /rest/metadata/fields/:id or the updateOneField GraphQL mutation, a workspace administrator with DATA_MODEL permission can inject arbitrary PostgreSQL statements. The injection occurs in buildSqlColumnDefinition, where unvalidated input is concatenated into a GENERATED ALWAYS AS expression. Successful exploitation allows the attacker to execute any SQL as the application database user, compromising database confidentiality, integrity, and potentially availability.

Affected Systems

The affected product is Twenty CRM. All releases prior to version 2.15.0 are vulnerable. Customers using any older version of the open-source platform are at risk until an upgrade to 2.15.0 or later is performed.

Risk and Exploitability

The CVSS score of 9.1 indicates high severity. Because the flaw requires the DATA_MODEL permission, the attack vector is likely a privileged administrator account, which can be accessed remotely if login credentials are compromised or social engineering is employed. No exploit probability data is available via EPSS, and the vulnerability is not listed in CISA KEV. Nonetheless, the combination of a high CVSS score and the ability to run arbitrary SQL makes exploitation highly attractive to attackers with the appropriate privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to version 2.15.0 or later to apply the vendor fix.
  • If an upgrade is not immediately possible, revoke or tightly restrict the DATA_MODEL permission to only trusted administrators to limit who can modify field settings.
  • Audit existing field configurations for unsafe expressions and enforce sanitization or removal of dynamically built searchVector expressions.

Generated by OpenCVE AI on August 11, 2026 at 22:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Twenty
Twenty twenty
Vendors & Products Twenty
Twenty twenty
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Twenty: SQL Injection in the `searchVector` Field Settings Allows Arbitrary PostgreSQL Execution
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 11, 2026, 6:28 PM
Reserved
Aug 10, 2026, 7:37 PM
Status
Deferred
Published
Aug 11, 2026, 4:17 PM
Modified
Oct 24, 2026, 3:10 PM