CVE-2026-47279: Nocodb Knex Raw Ast Injection

Directly passing the `.value` of an AST argument (like `pt.arguments[1]?.value`) to `knex.raw()` without validation can lead to SQL injection. Ensure the variable is validated against a strict allowlist (e.g., 'asc', 'desc') before usage.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0TS
greprules fetch cve-2026-47279-nocodb-knex-raw-ast-injection --engine opengrep

Description

Directly passing the `.value` of an AST argument (like `pt.arguments[1]?.value`) to `knex.raw()` without validation can lead to SQL injection. Ensure the variable is validated against a strict allowlist (e.g., 'asc', 'desc') before usage.