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.
Published: 2026-08-11
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Thu, 13 Aug 2026 11:00:00 +0000

Type Values Removed Values Added
First Time appeared Twenty
Twenty twenty
Vendors & Products Twenty
Twenty twenty

Tue, 11 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 11 Aug 2026 15:45:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-11T18:28:57.210Z

Reserved: 2026-08-10T19:37:41.444Z

Link: CVE-2026-73069

cve-icon Vulnrichment

Updated: 2026-08-11T18:28:51.370Z

cve-icon NVD

Status : Received

Published: 2026-08-11T16:17:38.090

Modified: 2026-08-11T19:18:49.750

Link: CVE-2026-73069

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T10:41:10Z

Weaknesses
  • CWE-89

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