SQL injection in Twenty - #VU139930
Published: July 28, 2026
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.