SQL injection in Twenty - #VU139930

 

SQL injection in Twenty - #VU139930

Published: July 28, 2026


Vulnerability identifier: #VU139930
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: N/A
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Twenty
Affected software:
Twenty

Detailed vulnerability description

The vulnerability allows a remote user to execute arbitrary PostgreSQL statements.

The vulnerability exists due to SQL injection in the searchVector TS_VECTOR field settings handling when processing REST or GraphQL metadata field updates. A remote privileged user can supply a crafted settings.asExpression value to execute arbitrary PostgreSQL statements.

Exploitation requires the DATA_MODEL permission and can be reached through the PATCH /rest/metadata/fields/:id or updateOneField mutation paths.


Remediation

Install security update from vendor's website.

Sources