{"id":"CVE-2026-73069","state":"PUBLISHED","title":"Twenty: SQL Injection in the `searchVector` Field Settings Allows Arbitrary PostgreSQL Execution","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.","publishedAt":"2026-08-11T15:18:56.084Z","updatedAt":"2026-08-11T18:28:57.210Z","severity":{"score":9.1,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["twentyhq twenty"],"affected":[{"vendor":"twentyhq","product":"twenty","versions":[{"version":"< 2.15.0","status":"affected"}]}],"references":["https://github.com/twentyhq/twenty/security/advisories/GHSA-mm7j-q9q3-qqwj","https://github.com/twentyhq/twenty/pull/21947","https://github.com/twentyhq/twenty/commit/0b8368cd6c1a47711bf52972800f162bde0bbab9"],"weaknesses":["CWE-89"],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/73xxx/CVE-2026-73069.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-73069","state":"PUBLISHED","datePublished":"2026-08-11T15:18:56.084Z","dateUpdated":"2026-08-11T18:28:57.210Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-08-10T19:37:41.444Z"},"containers":{"cna":{"title":"Twenty: SQL Injection in the `searchVector` Field Settings Allows Arbitrary PostgreSQL Execution","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"twentyhq","product":"twenty","versions":[{"version":"< 2.15.0","status":"affected"}]}],"references":[{"url":"https://github.com/twentyhq/twenty/security/advisories/GHSA-mm7j-q9q3-qqwj","name":"https://github.com/twentyhq/twenty/security/advisories/GHSA-mm7j-q9q3-qqwj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/twentyhq/twenty/pull/21947","name":"https://github.com/twentyhq/twenty/pull/21947","tags":["x_refsource_MISC"]},{"url":"https://github.com/twentyhq/twenty/commit/0b8368cd6c1a47711bf52972800f162bde0bbab9","name":"https://github.com/twentyhq/twenty/commit/0b8368cd6c1a47711bf52972800f162bde0bbab9","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.1,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","lang":"en","description":"CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-08-11T15:18:56.084Z"},"source":{"advisory":"GHSA-mm7j-q9q3-qqwj","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/twentyhq/twenty/security/advisories/GHSA-mm7j-q9q3-qqwj","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-11T18:27:22.650841Z","id":"CVE-2026-73069","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-11T18:28:57.210Z"}}]}}}