{"id":"GHSA-8fxg-mr34-jqr8","revision":"b05e33af9a344631ac8d463f1cbc99aa","records":[{"revision":"b05e33af9a344631ac8d463f1cbc99aa","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-8fxg-mr34-jqr8","aliases":["CVE-2023-50718"],"title":"NocoDB SQL Injection vulnerability","description":"### Summary\n---\nAn authenticated attacker with create access could conduct a SQL Injection attack on MySQL DB using unescaped table_name.\n\n### Details\n---\n### SQL Injection vulnerability occurs in **VitessClient.ts**.\n```javascript\nasync columnList(args: any = {}) {\n    const func = this.columnList.name;\n    const result = new Result();\n    log.api(`${func}:args:`, args);\n\n    try {\n      args.databaseName = this.connectionConfig.connection.database;\n\n      const response = await this.sqlClient.raw(\n        `select *, table_name as tn from information_schema.columns where table_name = '${args.tn}' ORDER by ordinal_position`,\n      );\n```\nThe variable **${args.tn}** refers to the table name entered by the user.\nA malicious attacker can escape the existing query by including a special character (') in the table name and insert and execute a new arbitrary SQL query.\n\n### Impact\n---\nThis vulnerability may result in leakage of sensitive data in the database.","state":0,"publishedAt":"2024-05-13T16:46:59+00:00","modifiedAt":"2026-09-10T03:50:13.5739462+00:00","affected":[{"ecosystem":"npm","name":"nocodb","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.202.10"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/nocodb/nocodb/security/advisories/GHSA-8fxg-mr34-jqr8","https://nvd.nist.gov/vuln/detail/CVE-2023-50718","https://github.com/nocodb/nocodb"],"sourceUrl":"https://github.com/advisories/GHSA-8fxg-mr34-jqr8","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-8fxg-mr34-jqr8","identifiers":["GHSA-8fxg-mr34-jqr8","CVE-2023-50718"]},"retained":false,"historicalAffected":[]}],"coverage":[]}